示例#1
0
 def _fetch_feed(self, podcast_url):
     import socket
     t = socket.getdefaulttimeout()
     socket.setdefaulttimeout(10)
     return parse_feed(podcast_url, text_processor=ConvertMarkdown())
     socket.setdefaulttimeout(t)
示例#2
0
 def test_basic_parse(self):
     URL = 'http://feeds.feedburner.com/linuxoutlaws'
     parse_feed(URL, None)