Python6 lines of code downloading, reading and analyzing rss2.0

From , 5 Years ago, written in Python, viewed 217 times.
URL https://pastebin.vip/view/f5ac21cd
  1. import urllib, sys, xml.dom.minidom
  2. address = 'http://www.sebsauvage.net/rss/updates.xml'
  3. document = xml.dom.minidom.parse(urllib.urlopen(address))
  4. for item in document.getElementsByTagName('item'):
  5.     title = item.getElementsByTagName('title')[0].firstChild.data
  6.     print "Title:", title.encode('latin-1','replace')
  7. #//python/1861

Reply to "Python6 lines of code downloading, reading and analyzing rss2.0"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website