Spaces:
Runtime error
Runtime error
import twint | |
import datetime | |
c = twint.Config() | |
c.Search = ['Taylor Swift'] # topic | |
c.Limit = 500 # number of Tweets to scrape | |
c.Store_csv = True # store tweets in a csv file | |
c.Output = "taylor_swift_tweets.csv" # path to csv file | |
twint.run.Search(c) | |
import pandas as pd | |
df = pd.read_csv('taylor_swift_tweets.csv') | |
print(df.head()) | |