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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(request) Allow command-line USERNAME and PASSWORD input

badjoerichards opened this issue · comments

python scraper -u="hello" -p="password" -t 100 -ht python --latest

This would allow users to use rotate and use different twitter accounts when scraping, preventing floods and bans.

So by default it uses the account in .env, but if provided in the command-line, will use them instead.

Actually you can just remove the USERNAME and PASSWORD variable in the .env and run the program then it will ask you to provide a username and password. But I think your ideas is to make it possible for scripts. I will definitely work on that.

Yes, I believe that would make your program even better for use!