Skip to content

Instantly share code, notes, and snippets.

View vanderleik's full-sized avatar

Vanderlei Kleinschmidt vanderleik

View GitHub Profile
@gdsaxton
gdsaxton / Social_Metrics_Tutorial_Script_User_Timeline_All_Pages_MongoDB.py
Last active April 7, 2022 17:04
Downloading Tweets by a List of Users -- MongoDB Version
#!/usr/bin/env python
"""
Social_Metrics_Tutorial_Script_User_Timeline_All_Pages_MongoDB.py - DOWNLOADS ALL AVAILABLE RECENT
TWEETS FROM 5 MLB ACCOUNTS INTO MONGODB DATABASE
BEFORE RUNNING THIS SCRIPT, YOU WILL NEED TO:
1. HAVE ANACONDA PYTHON 2.7 INSTALLED
2. HAVE CREATED CSV FILE (E.G., IN EXCEL) CONTAINING TWITTER HANDLES YOU
WISH TO DOWNLOAD (SEE TUTORIAL FOR DETAILS)