andrei-zgirvaci / Twitch-Farmer

A bot that helps you to get more followers on Twitch
135 stars 38 forks source link

I am getting a NameError when I type in the name of the channel I want it to follow #11

Closed KevinJones20 closed 5 years ago

KevinJones20 commented 5 years ago

What channel should I follow? : Traceback (most recent call last): File "twitch_farmer.py", line 254, in main() File "twitch_farmer.py", line 116, in main follow_channel_name = input("What channel should I follow? : ") File "", line 1, in NameError: name 'theirchannelname' is not defined

andrei-zgirvaci commented 5 years ago

I am not sure what's the problem. I have tested on my side it works. Make sure you are running the specified python version.

Also, I think, it may be the environment you are running it from. What are you using, terminal and if so, which?

KevinJones20 commented 5 years ago

Ive tried to run it through git, python, cmd, whatever I use I get the same error, I haven't messed with the code whatsoever so I am not sure why it says it isn't defined.

KevinJones20 commented 5 years ago

I'm also using Windows 10

KevinJones20 commented 5 years ago

Also it doesn't let me run it by typing 'python3' , I have to say python

andrei-zgirvaci commented 5 years ago

I am pretty sure you are not running the script with python3, type python --version and tell me which version are you running?

KevinJones20 commented 5 years ago

Yeah you are right, it is still running 2.7 even though I've tried running it from python 3

andrei-zgirvaci commented 5 years ago

Did you solve the problem?

KevinJones20 commented 5 years ago

Well I decided to uninstall 2.7 completely from my computer, its now running 3.7 through gitbash, but now I am getting this error

$ python3 twitch_farmer.py Traceback (most recent call last): File "twitch_farmer.py", line 6, in from selenium import webdriver ModuleNotFoundError: No module named 'selenium'

But when I type the pip install selenium pandas line, it returns nothing, and I've already confirmed my PATHs and pip install went well, so I'm not sure what the issue is now

andrei-zgirvaci commented 5 years ago

Sorry, it's my fault, I should have mentioned that you should use pip3 for python 3.

I will update the README.

KevinJones20 commented 5 years ago

Ahhh gotcha, yeah that worked, it's installed, now I can run it and it does work but I get

Traceback (most recent call last): File "twitch_farmer.py", line 254, in main() File "twitch_farmer.py", line 126, in main username_rows = accounts_csv.username File "F:\Python37\lib\site-packages\pandas\core\generic.py", line 4376, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'username'

I entered a real username and password for a twitch account, do you know what is causing this error?

andrei-zgirvaci commented 5 years ago

It seems it has to do with the .csv file. It can't find the column username.

Make sure your file looks like this: https://github.com/MD3XTER/Twitch-Farmer#usage

Also, it may be the case if you opened the file with excel, it could have changed the column separator from , to ;. Make sure it's coma separator.

Can you open the .csv file in a text editor and make sure everything is right?

KevinJones20 commented 5 years ago

Okay, I've gotten it working to the point where it's repeatedly opening chrome but not loading the page correctly/continually closing

andrei-zgirvaci commented 5 years ago

It means that the proxies are not good

KevinJones20 commented 5 years ago

It keeps saying time expired changing proxy, even after I changed them to working ones

andrei-zgirvaci commented 5 years ago

Are you sure the proxy is working? I have tested it with some proxies and it worked. What type of proxy are you using?

I will also have a deeper look tomorrow.

KevinJones20 commented 5 years ago

I'm just using proxies from an online proxy list so it might not be the best source

andrei-zgirvaci commented 5 years ago

Yes, you have to buy unused proxies so the bot will work properly.