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

What is a Bearer Token & User ID? #51

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm at the step where I need to Enter a Bearer Token and UserID. I don't know how/where to find those, and what purpose they serve. Can anyone assist me?

aamirchaudry29 commented 6 years ago

You need the token and ID so the bot can essentially 'watch' the game with you and get the questions. You can get this by using charlesProxy and following a few tutorials

ghost commented 6 years ago

@Fizzy7up I connected my computer to my phone by changing my phone wifi to manuel and enter proxy info. Idk where to find the bearer token now?

Exaphis commented 6 years ago

What operating system is your phone using? If you can't find your bearer token/user ID, you can use gjacobs314's examples here: https://github.com/gjacobs314/HQTrivia

ghost commented 6 years ago

@Exaphis I have a Android Tmobile Revvl Plus. Not exactly the best hah, but it's still pretty good.

Exaphis commented 6 years ago

Since it uses Android N, traffic can't be sniffed without modifying the app itself. You can just use the examples posted in the repo I linked above.

ghost commented 6 years ago

@Exaphis Okay that makes sense. So I just enter the information into that notepad file, save. And then when do I run that final code sequence 'python3 hq_main.py'? When the game starts or 2 minutes before?

Exaphis commented 6 years ago

You can run it whenever you want. If the show is not online it will say so.

ghost commented 6 years ago

@Exaphis capture

Was running fine before, but wont now?

Exaphis commented 6 years ago

Try using just python or running it from IDLE.

ghost commented 6 years ago

weird.. it started working for me after the game had ended. I'll try it during the one tonight

Exaphis commented 6 years ago

No response for 10 days, assuming solved.