Tweets Collector Script for your Data Science project

  1. Create your API KEYS
  • Define Key Credentials using ConfigParser library
  • Create an Authorization Token using Key Credentials
  • Tweets Request Function
  • Connection and Main Function to execute the script

Additional Information

try:                
cur.execute(tweets_alert_insert, tweet_data)
except ValueError as e:
print(e)
search_parameters = {        
'screen_name': 'NJTRANSIT_NEC',
'since_id': id_last_tweet,
'count': 200,
'include_rts': False
}
Example Data

What’s Next?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store