Skip to content

Instantly share code, notes, and snippets.

@harsha89
Last active May 7, 2020 13:37
Show Gist options
  • Save harsha89/e1c5e44358c3fe3edcfe5a9e5d90c88c to your computer and use it in GitHub Desktop.
Save harsha89/e1c5e44358c3fe3edcfe5a9e5d90c88c to your computer and use it in GitHub Desktop.
import twint
import sys
c = twint.Config()
c.Search = "cancer AND covid-19"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"
c.Lang = 'en'
c.Hide_output = True
c.Debug = True
try:
twint.run.Search(c)
except Exception as e:
print(e)
print("end of the program")
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment