matamorphosis / Scrummage

A Holistic OSINT and Threat Hunting Platform
GNU General Public License v3.0
502 stars 81 forks source link

API key not valid with Google search using valid api key #9

Closed Joukahainen123 closed 4 years ago

Joukahainen123 commented 4 years ago

Hi for some reason the Google search is not functioning. I am quite sure that the settings in configuration are right (copy-pasted from working setup of Scumblr). What could be the issue here? Logs below.

INFO:werkzeug:10.10.220.100 - - [06/Jul/2020 15:07:38] "GET /static/images/sort_both.png HTTP/1.1" 200 - WARNING:root:2020-07-06 15:07:38 - Google_Search - <HttpError 400 when requesting https://customsearch.googleapis.com/$discovery/rest?version=thescumblr&key=1.0 returned "API key not valid. Please pass a valid API key.". Details: "[{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Google developers console', 'url': 'https://console.developers.google.com'}]}]"> INFO:root:2020-07-06 15:07:38 Connectors Library - Loading Scrummage's Main Database configuration data. INFO:werkzeug:10.10.220.100 - - [06/Jul/2020 15:07:39] "GET /static/images/sort_asc.png HTTP/1.1" 200 -

matamorphosis commented 4 years ago

Hey Joukahainen123,

I appreciate your persistence. This was the result of a simple oversight from the latest change with the loading of configuration details. I've updated and retested the plugin from my end and seems fine now.

Just ensure your API details are set correctly in the config file.

"google": {
    "cx": "CX GOES HERE",
    "application_name": "thescumblr",
    "application_version": "1.0",
    "developer_key": "KEY GOES HERE"
},