Skip to content

Instantly share code, notes, and snippets.

@AsciencioAlex
Created June 12, 2017 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsciencioAlex/5f5eeab00c79032aee981f36f656716a to your computer and use it in GitHub Desktop.
Save AsciencioAlex/5f5eeab00c79032aee981f36f656716a to your computer and use it in GitHub Desktop.
simple codes to retrieve your tweets. Written in Python
import urllib2
import json
screen_name = "KenyaGeek "
screen = raw_input("Which tweet do you want to search?")
url = "http://api.twitter.com/1/statuses/kenyageek.json?screeen_name" + screen_name
data = json.load(urllib2.urlopen(url))
print len(data), "tweets"
for tweet in data:
print tweet['text']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment