All pastes #2045516 Raw Edit

Stuff

public text v1 · immutable
#2045516 ·published 2011-04-12 17:29 UTC
rendered paste body
import urllib
import string
import sqlite3

from BeautifulSoup import BeautifulStoneSoup 

feed_url = 'http://search.twitter.com/search.atom?geocode=41.012379%2C28.975926%2C15.0mi&q=+near%3Aistanbul+within%3A15mi'
feed_xml = urllib.urlopen(feed_url).read()
soup = BeautifulStoneSoup(feed_xml, convertEntities=BeautifulStoneSoup.HTML_ENTITIES)
for entry in soup.findAll('entry'):
	print entry