Created
May 7, 2020 13:32
-
-
Save harsha89/e02122eb86e75d8159b5f038633e92e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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