godkingjay / selenium-twitter-scraper

This is a Twitter Scraper which uses Selenium for scraping tweets. It is capable of scraping tweets from home, user profile, hashtag, query or search, and advanced searches.
Apache License 2.0
177 stars 47 forks source link

Getting error Login Failed: 'NoneType' object is not iterable #10

Closed ahmethudaiaydin closed 6 months ago

ahmethudaiaydin commented 6 months ago

When I did the ReadMe instructions, it returns following error: Get the code, Install requirement.txt Update env file. Run command -> python scraper --user=@myusername --password=mypassword

Loading .env file
Loaded .env file

Initializing Twitter Scraper...
Setup WebDriver...
Initializing FirefoxDriver...
WebDriver Setup Complete

Logging in to Twitter...

Login Failed: 'NoneType' object is not iterable
agnesmm commented 6 months ago

Add your TWITTER_MAIL in .env :)

ahmethudaiaydin commented 6 months ago

My .env file looks like.

TWITTER_USERNAME=ahmet.aydin@mymail.com
TWITTER_PASSWORD=******

And running following in cmd python scraper --user=@myusername --password=mypassword

still doesn't work. Same error. Missing something?

pierreminiggio commented 6 months ago

My .env file looks like.

TWITTER_USERNAME=ahmet.aydin@mymail.com
TWITTER_PASSWORD=******

And running following in cmd python scraper --user=@myusername --password=mypassword

still doesn't work. Same error. Missing something?

I had the same issue, and I changed my .env for

TWITTER_USERNAME=PierreMiniggio
TWITTER_MAIL=someaddress@mymail.com
TWITTER_PASSWORD=somepassword

and then it worked.




Add your TWITTER_MAIL in .env :)

I think my current .env is what @agnesmm meant with her own reply to you.

ahmethudaiaydin commented 6 months ago

@pierreminiggio, Thanks for your response. I tried and it worked for me as well!

hovanhoa commented 6 months ago

This worked for me, thanks