Created
May 7, 2020 13:32
-
-
Save harsha89/9ff938f016cc6a9d5ed15e6b3f8a1450 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