Add python-eventlet 0.16.1
[packages/trusty/python-eventlet.git] / eventlet / examples / feedscraper-testclient.py
1 from eventlet.green import urllib2
2
3 big_list_of_feeds = """
4 http://blog.eventlet.net/feed/
5 http://rss.slashdot.org/Slashdot/slashdot
6 http://feeds.boingboing.net/boingboing/iBag
7 http://feeds.feedburner.com/RockPaperShotgun
8 http://feeds.penny-arcade.com/pa-mainsite
9 http://achewood.com/rss.php
10 http://raysmuckles.blogspot.com/atom.xml
11 http://rbeef.blogspot.com/atom.xml
12 http://journeyintoreason.blogspot.com/atom.xml
13 http://orezscu.blogspot.com/atom.xml
14 http://feeds2.feedburner.com/AskMetafilter
15 http://feeds2.feedburner.com/Metafilter
16 http://stackoverflow.com/feeds
17 http://feeds.feedburner.com/codinghorror
18 http://www.tbray.org/ongoing/ongoing.atom
19 http://www.zeldman.com/feed/
20 http://ln.hixie.ch/rss/html
21 """
22
23 url = 'http://localhost:9010/'
24 result = urllib2.urlopen(url, big_list_of_feeds)
25 print(result.read())