-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help!!! #7
Comments
How are you trying to run it? you should be using is that the full error message? |
Sorry i really new to python and stuff |
how do you run it? |
don't worry about it man - are you on windows or on linux? if you're on linux you can just open up a new terminal in the directory of wherever your program is, and type |
Ah im on windows |
install python from python.org - and then use this guide (it's a very good guide) http://effbot.org/pyfaq/how-do-i-run-a-python-program-under-windows.htm if you have any more questions just post them here - i'll try to respond as quick as i can |
ah i don't know man i go on the python command line and type python twitterbot.py and i still get syntaxerror: invalid syntax |
do i have to edit the twitterbot.py cause i have and put put all my keys in |
yeah you're supposed to put all of your keys in - can you paste the full error?? does it point to a line or anything? are you running it on the actual python command line, where it starts with |
Yeah the line of error are the keys i put in |
paste those lines here, please? like the lines where you put the keys in |
with the key? |
oh crap yeah that's right - you probably shouldn't paste that here; i forgot the keys were private... can you make sure that you have quotes on either side of all of your keys? Also; does the error message say anything more specific? usually it will elaborate on |
all it says is invalid syntax and that's all |
alright, i can't help you very much with the provided info but check these:
maybe post the lines here but when you post them just replace your keys with the word "key" so i can see a little bit of what's going on? |
This was a quick project. Inspired by a story I heard of on the news where a guy did something almost exactly the sameand won a bunch of stuff. I couldn't find the code that that guy used (I don't think he wanted to release it), so Iwrote this. Have fun.import tweepy, time #enter the corresponding information from your Twitter application: CONSUMER_KEY = ''key'' #keep the quotes, enter your consumer key auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) bannedwords = ["vote", "bot", "b0t"] bannedusers = ['bot', 'spot', 'lvbroadcasting'] # does not need to be the entire username! you can just put 'bot' for names like 'b0tspotter', etc. def is_user_bot_hunter(username): def search(twts):
def run(): if name == 'main': |
when i run the command on IDLE there is a red line on my keys that i put in |
i have tried running the command on python and the IDLE thing |
have you installed tweepy with |
um i think so |
can you please paste in the error you get when you try to run the program, you can replace your keys with |
This is what i get on the python command line |
you can't run it on the python command line; that's for when you want to run code, so i could type something like you need to just open up a normal command prompt (windows key + R, type cmd, hit enter) and enter in with [path-to-twitterbot.py] being where the python file is saved, so if it's in your downloads folder you could type if this fails, look up "how to run a python program in idle" and follow the steps you see there. |
File "twitterbot.py", line 9 |
I found out how to run program but its takes me back the the SyntaxError |
@JordanKM3 Did you add the key? |
I have put in all the keys and when i run it says "There's an error in your program: Invalid syntax" Please help
The text was updated successfully, but these errors were encountered: