A bot for the popular mobile game HQ Trivia
./bot.py -v -i test_question2.pngBusking (Verb) - the act of performing in public places for gratuities. In many countries the rewards are generally in the form of money.
- Install requirements
pip install -r requirements.txt-
Enable API's in Google Cloud. Go to Google Cloud. Enable Google Cloud Natural Language API, Google Cloud Custom Search API and Google Cloud Vision API.
-
Go to Google Cloud Credentials Page and download the JSON file.
-
Set
GOOGLE_APPLICATION_CREDENTIALSin the config file to the path of where you saved the JSON file. -
Create a new (Custom Search Engine)[https://cse.google.com/cse/all]. Enter
www.anyurl.comin the sites to search input. ClickCreate. Then clickModify your search engine, then go down toSites to searchand under advanced change fromSearch only included sitestoSearch the entire web but emphasize included sites. -
Set
customsearch_idin the config file to your search engine ID found under the detials section of CSE. -
Set
developerKeyin the config file to your Developer API Key found in the Credentials Page -
Try it:
./bot.py -v -i test_question2.pngHQBot depends on the following Python 2.7 modules:
google-cloud-vision
google-cloud-language
google-api-python-client
This is using a Google Custom Search to try and predict the best possible answer. Answers may not be 100% correct but know my HQBot tried its best.



