Exaphis / HackQ-Trivia

Yet another HQ Trivia bot. Automatically scrapes HQ Trivia questions without OCR and answers them.
MIT License
89 stars 54 forks source link

help #187

Closed harshitgarg02 closed 4 years ago

harshitgarg02 commented 4 years ago
Screenshot 2020-07-17 at 10 55 43 PM

please help

harshitgarg02 commented 4 years ago

Screenshot 2020-07-17 at 11 00 20 PM also this Screenshot 2020-07-17 at 11 00 17 PM

Exaphis commented 4 years ago

From your error message, you have to run xcode-select --install.

harshitgarg02 commented 4 years ago

1595010331236463665359155930515

harshitgarg02 commented 4 years ago

help

Exaphis commented 4 years ago

Try running sudo xcode-select --reset and then xcode-select --install.

harshitgarg02 commented 4 years ago

1595011761824177671758746499117 Still

harshitgarg02 commented 4 years ago

But installation completed now with no error

Exaphis commented 4 years ago

Oh, good. Problem solved?

harshitgarg02 commented 4 years ago

Nope

Exaphis commented 4 years ago

What's the problem?

harshitgarg02 commented 4 years ago

15950119526983080876699636261909

Exaphis commented 4 years ago

Read the README, then run python3 -m hackq_trivia.bearer_finder to obtain your bearer token.

harshitgarg02 commented 4 years ago

Ok trying

harshitgarg02 commented 4 years ago

Enter your phone number, including + and country code (e.g. +14155552671) Example: (415) 555-0171 (U.S. number) -> +14155550171 Alternatively, enter a previous verification ID: ? +14142869827 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/devanshugarg/HackQ-Trivia/hackq_trivia/bearer_finder.py", line 65, in main() File "/Users/devanshugarg/HackQ-Trivia/hackq_trivia/bearer_finder.py", line 38, in main verify_resp = hq_post('verifications', {'phone': phone, 'method': 'sms'}) File "/Users/devanshugarg/HackQ-Trivia/hackq_trivia/bearer_finder.py", line 26, in hq_post raise HQResponseError(f'Error code {resp["errorCode"]}: {resp["error"]}') main.HQResponseError: Error code 102: not authorized

Exaphis commented 4 years ago

Try using a VPN.

harshitgarg02 commented 4 years ago

saying this

harshitgarg02 commented 4 years ago

ok

harshitgarg02 commented 4 years ago

wait a minute installing vpn

harshitgarg02 commented 4 years ago

got my bearer token

harshitgarg02 commented 4 years ago

pasted it in config file

harshitgarg02 commented 4 years ago

what about google api and others

Exaphis commented 4 years ago

Follow the instructions in the README to obtain either a Bing/Google API key. If I remember correctly, you'll need a valid credit card but you won't be charged.

harshitgarg02 commented 4 years ago

you mean google console??

harshitgarg02 commented 4 years ago

Name your custom search engine and type in any valid URL in Sites to search

what is this

Exaphis commented 4 years ago

Name it, and add anything (e.g. https://google.com/) in sites to search. The site you add will be deleted later as part of the process.

harshitgarg02 commented 4 years ago

ok

harshitgarg02 commented 4 years ago

if i dont setup bing then??

Exaphis commented 4 years ago

As long as you have one of Google or Bing set up, it is OK.

harshitgarg02 commented 4 years ago

ok

harshitgarg02 commented 4 years ago

any test py??

Exaphis commented 4 years ago

Feel free to run any of the tests in the test folder, such as python3 -m hackq_trivia.tests.test_question_handler_answers.

harshitgarg02 commented 4 years ago
Screenshot 2020-07-18 at 12 41 29 AM
Exaphis commented 4 years ago

As it says, your API key is invalid.

harshitgarg02 commented 4 years ago

i got from official website

Exaphis commented 4 years ago

Did you paste it in hq_config.conf?

harshitgarg02 commented 4 years ago

yup

harshitgarg02 commented 4 years ago

if i run main py

Screenshot 2020-07-18 at 12 47 27 AM
harshitgarg02 commented 4 years ago

i restarted the terminal and guess what it worked. thanks a lot

Exaphis commented 4 years ago

No problem!

Exaphis commented 4 years ago

Best not share your API key online :-)

If you like the project, a star would be much appreciated!

harshitgarg02 commented 4 years ago

I started it because I loved this project

harshitgarg02 commented 4 years ago

This project should be appreciated