update scraper configurator

This commit is contained in:
Jarrian
2023-09-20 09:27:22 +08:00
parent 2553d26590
commit c896baa165
3 changed files with 216 additions and 59 deletions

View File

@@ -115,7 +115,14 @@ def main():
scrape_top=args.top,
)
scraper.scrape_tweets()
scraper.scrape_tweets(
max_tweets=args.tweets,
scrape_username=args.username,
scrape_hashtag=args.hashtag,
scrape_query=args.query,
scrape_latest=args.latest,
scrape_top=args.top,
)
scraper.save_to_csv()
scraper.driver.close()
else: