Skip to content

Instantly share code, notes, and snippets.

@kevinbsc
kevinbsc / tweepy_runner.py
Created July 13, 2017 16:22 — forked from MihaiTabara/tweepy_runner.py
Script to download Twitter timeline for a user and store it to MongoDB
# script to download up to <= 3200 (the official API limit) of most recent tweets from a user's timeline
from pymongo import MongoClient
import tweepy
import json
#Twitter API credentials
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
@kevinbsc
kevinbsc / tweet_image_dumper.py
Created July 13, 2017 16:22 — forked from freimanas/tweet_image_dumper.py
Get twitter user's photo url's from tweets - download all images from twitter user
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
import sys
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
@kevinbsc
kevinbsc / tweet_dumper.py
Created July 13, 2017 16:21 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""