Skip to content

Instantly share code, notes, and snippets.

@harsha89
Created May 7, 2020 13:32
Show Gist options
  • Save harsha89/ca81b01a2f6ba3bf8a268fb2ed9bc99f to your computer and use it in GitHub Desktop.
Save harsha89/ca81b01a2f6ba3bf8a268fb2ed9bc99f to your computer and use it in GitHub Desktop.
import twint
import sys
c = twint.Config()
c.Search = "cancer"
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