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

Error when trying to run bot (IndexError) #92

Closed gpicon6 closed 6 years ago

gpicon6 commented 6 years ago

Traceback (most recent call last): File "hq_main.py", line 25, in raise e File "hq_main.py", line 22, in USER_ID = settings[1].split("=")[1] IndexError: list index out of range

Exaphis commented 6 years ago

Have you filled out your conn_settings.txt? If you have, please post the log file here.

U-r-Unknown commented 6 years ago

Same error with me. I filled both in settings ( I was just trying to check, the game wasn't on )

U-r-Unknown commented 6 years ago

Are the user IDs being reset by HQ trivia? Im using those given in Jacobs example.

Exaphis commented 6 years ago

Some User IDs/Bearer Tokens have been reset. @U-r-Unknown, please post the log file here if you are still having the issue.

a314s commented 6 years ago

I had this problem but fixed it just now by removing the blank line i had between the Bearer_token and UserID lines.

iceeb commented 6 years ago

how tf yall find ur bearer token and userid

a314s commented 6 years ago

You need to 1) get a program to inspect network traffic (I used charles) 2)install the ssl certificate on your phone 2.5)configure your phones http proxy to use your computer ip with port 8888(charles walks you through it) 3Go to your phone settings and make sure you flip it on 4)In charles enable SSL proxing for the HQ api 5) it should be there in plain text.

I can just give you an id but they change them every so often so you will need new ones periodically.

AyJavasProcessing commented 6 years ago

@a314s do you need to make a new account every time the Id stops working?

a314s commented 6 years ago

The need to figure that out has not arrived yet. But i would imagine you just need to get the new bearer and ID strings.

Exaphis commented 6 years ago

Issue should have been solved in commit https://github.com/Exaphis/HackQ-Trivia/commit/9346ee572c079cdfe9cb3bd022f2fe807b6bd7b2. Let me know if you have any more problems.