scripts/scraping/electricitymap/topic_scrap.py

10 lines
436 B
Python
Raw Normal View History

2023-09-14 16:20:59 +02:00
from twitter_scraper_selenium import scrape_keyword
#scrape 10 posts by searching keyword "india" from date 30th August till date 31st August
topic_out = scrape_keyword(keyword="climat",
browser="firefox",
tweets_count=20,
output_format="json" ,
# until="2021-08-31",
since=date.today().format('YYYY-MM-DD')
print(topic_out)