matamorphosis / Scrummage

A Holistic OSINT and Threat Hunting Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request contains an invalid argument in Google search when limit is set

Joukahainen123 opened this issue · comments

Hi,

If I set the limit value to anything else than default, Google search will fail with following error:

WARNING:root:2020-07-07 14:25:43 - Google_Search - <HttpError 400 when requesting https://customsearch.googleapis.com/customsearch/v1?q=Kerava&cx=[REMOVED]=50&key=[REMOVED]=json returned "Request contains an invalid argument.">
INFO:root:2020-07-07 14:25:43 Connectors Library - Loading Scrummage's Main Database configuration data.

I'll keep this issue open for now, it appears any number up to 10 is fine. But it looks like it might be an issue with the Google API itself as the parameter used doesn't return more than 10 results at a time. Leave it with me and I'll investigate it further, I may be able to make a work-around for this.

The issue has been resolved. The limit can only be up to 100 due to API restrictions, but under that, you should be fine.