#This sample won't work on this page due to a ssl bug on urllib2 import urllib2 api_call = "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=efenoticias&count=1&include_rts=1" print "ANtes" json_string = "" try: resp = urllib2.urlopen(api_call) json_string = resp.read() except urllib2.URLError, e: print e.reason raise else: print json_string
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question