Comments (33)
You run hq_main.py in your IDE of choice or in the command line.
from hackq-trivia.
would I be able to do it on Xcode
from hackq-trivia.
I'm not familiar with Xcode, but I'm sure you can run Python if you wanted to.
from hackq-trivia.
so I just put the code into python the idle folder
from hackq-trivia.
You can just open hq_main with IDLE.
from hackq-trivia.
thanks. just one more thing how do I get the bearer token do I use Charles proxy or is there an easier way
from hackq-trivia.
https://github.com/gjacobs314/HQTrivia has two example bearer tokens/user IDs for you to use.
from hackq-trivia.
ok i opened it in idle and its a bunch of code is it cause the shows not on right now or do I need to still do something
from hackq-trivia.
You have to run the code. If the show's not on, it should say so.
from hackq-trivia.
I run it through terminal right
from hackq-trivia.
Yes, IDLE should work fine too.
from hackq-trivia.
cause my idle says multiple statements found while compiling a single statement
from hackq-trivia.
Please post a screenshot of the error. Alternatively, you could run python3 hq_main
in cmd/terminal with your working directory being in the HackQ-Trivia folder.
from hackq-trivia.
from hackq-trivia.
do you know what I did wrong?
from hackq-trivia.
Try right clicking, and under open with, click IDLE. The code should pop up in a new window instead of the shell.
from hackq-trivia.
from hackq-trivia.
I did that but how do I run it now
from hackq-trivia.
You can press fn+F5 or go to Run->Run Module.
from hackq-trivia.
from hackq-trivia.
Now, you need to install the dependencies for the program. In terminal, run:
pip install bs4
pip install nltk
pip install aiohttp
pip install unidecode
After you install those, you need to run these 3 lines of code in the IDLE shell:
import nltk
nltk.download("stopwords")
nltk.download("averaged_perceptron_tagger")
You then need to enter your bearer token/user ID.
from hackq-trivia.
terminal says pip command not found
from hackq-trivia.
Try using pip3 instead of pip. If that doesn't work, try running sudo easy_install pip
before running those 3 commands again.
from hackq-trivia.
all of them installed with pip3 except ntlk one
from hackq-trivia.
What does it say when you install nltk?
from hackq-trivia.
it worked I think I just typed it wrong the first time
from hackq-trivia.
Alright. Let me know if you have any more problems.
from hackq-trivia.
ok I just did those steps now do I rerun the script
from hackq-trivia.
Yes.
from hackq-trivia.
ok thanks
from hackq-trivia.
ok thanks I think it works it says show not on
from hackq-trivia.
Yep, that's what it's supposed to say.
from hackq-trivia.
ok thank you so much
from hackq-trivia.
Related Issues (20)
- Fixing NOT questions? HOT 2
- Help me please ! HOT 2
- getting error like error in server response: not authorized HOT 21
- bearer finder TypeError: 'NoneType' object is not subscriptable HOT 8
- Help me, i try python -m hackq_trivia.tests.test_question_handler_answers HOT 2
- Auto HOT 2
- Discord HOT 1
- help HOT 42
- api HOT 2
- Bing search is not working
- Logging error HOT 2
- This is not an issue HOT 1
- NumSitesToSearch HOT 2
- just a question, what is the function that outputs the answer HOT 2
- showing error when question comes and closes automatically HOT 4
- UnicodeEncodeError
- webSF
- error HOT 1
- Improve accuracy
- SMS Bearer Token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackq-trivia.