selenium-twitter-scraper icon indicating copy to clipboard operation
selenium-twitter-scraper copied to clipboard

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

Open ahmethudaiaydin opened this issue 1 year ago • 3 comments

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

ahmethudaiaydin avatar May 08 '24 11:05 ahmethudaiaydin

Add your TWITTER_MAIL in .env :)

agnesmm avatar May 09 '24 13:05 agnesmm

My .env file looks like.

[email protected]
TWITTER_PASSWORD=******

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

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

ahmethudaiaydin avatar May 09 '24 13:05 ahmethudaiaydin

My .env file looks like.

[email protected]
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
[email protected]
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.

pierreminiggio avatar May 09 '24 18:05 pierreminiggio

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

ahmethudaiaydin avatar May 18 '24 14:05 ahmethudaiaydin

This worked for me, thanks

hovanhoa avatar May 21 '24 08:05 hovanhoa