Coder Social home page Coder Social logo

Comments (33)

Exaphis avatar Exaphis commented on September 15, 2024

You run hq_main.py in your IDE of choice or in the command line.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

would I be able to do it on Xcode

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

I'm not familiar with Xcode, but I'm sure you can run Python if you wanted to.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

so I just put the code into python the idle folder

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

You can just open hq_main with IDLE.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

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.

Exaphis avatar Exaphis commented on September 15, 2024

https://github.com/gjacobs314/HQTrivia has two example bearer tokens/user IDs for you to use.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

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.

Exaphis avatar Exaphis commented on September 15, 2024

You have to run the code. If the show's not on, it should say so.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

I run it through terminal right

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

Yes, IDLE should work fine too.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

cause my idle says multiple statements found while compiling a single statement

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

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.

healur avatar healur commented on September 15, 2024

screen shot 2018-03-10 at 2 53 31 pm

from hackq-trivia.

healur avatar healur commented on September 15, 2024

do you know what I did wrong?

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

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.

healur avatar healur commented on September 15, 2024

screen shot 2018-03-10 at 4 32 05 pm

from hackq-trivia.

healur avatar healur commented on September 15, 2024

I did that but how do I run it now

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

You can press fn+F5 or go to Run->Run Module.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

screen shot 2018-03-10 at 4 37 24 pm

this happened

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

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.

healur avatar healur commented on September 15, 2024

terminal says pip command not found

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

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.

healur avatar healur commented on September 15, 2024

all of them installed with pip3 except ntlk one

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

What does it say when you install nltk?

from hackq-trivia.

healur avatar healur commented on September 15, 2024

it worked I think I just typed it wrong the first time

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

Alright. Let me know if you have any more problems.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

ok I just did those steps now do I rerun the script

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

Yes.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

ok thanks

from hackq-trivia.

healur avatar healur commented on September 15, 2024

ok thanks I think it works it says show not on

from hackq-trivia.

Exaphis avatar Exaphis commented on September 15, 2024

Yep, that's what it's supposed to say.

from hackq-trivia.

healur avatar healur commented on September 15, 2024

ok thank you so much

from hackq-trivia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.