Skip to content

Instantly share code, notes, and snippets.

View gdsaxton's full-sized avatar

Gregory Saxton gdsaxton

View GitHub Profile
@gdsaxton
gdsaxton / friend_follower_lists.py
Last active May 4, 2016 23:21
Loop over list of Twitter user screen_names, create dictionary of users' follower IDs and friend IDs.
for id in screen_names_unique[42:44]:
screen_name = id
print '\n', screen_name
cursor = "-1"
print 'followers list first cursor', cursor
d = get_followers_ids (screen_name, cursor)
#!/usr/bin/env python
"""
tags_from_tweets.py - Take hashtags from tweets in SQLite database. Output to text file.
"""
import sys
import re
import sqlite3
@gdsaxton
gdsaxton / twitter-user-data.py
Last active December 16, 2018 19:46
Twitter User Information
#!/usr/bin/env python
"""
Use Twitter API to grab user information from list of organizations;
export text file
Uses Twython module to access Twitter API
"""