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
176 stars 46 forks source link

(request) Allow command-line USERNAME and PASSWORD input #3

Closed badjoerichards closed 1 year ago

badjoerichards commented 1 year ago

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.

godkingjay commented 1 year ago

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.

badjoerichards commented 1 year ago

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

godkingjay commented 1 year ago

feat(auth): Authentication Directly in Terminal

docs: Add authentication options and add sample commands for Advanced Search