dopaminadarktheme
Full Dopamina Dark Theme
import urllib import sys import xml.dom.minidom # The URL of the RSS feed address = 'http://rss.slashdot.org/Slashdot/slashdot' # Our actual XML document document = xml.dom.minidom.parse(urllib.urlopen(address)) for item in document.getElementsByTagName('item'): title = item.getElementsByTagName('title')[0].firstChild.data link = item.getElementsByTagName('link')[0].firstChild.data creator = item.getElementsByTagName('dc:creator')[0].firstChild.data print '''<a href="%s">%s</a> (%s)''' % (link.encode('UTF8', 'replace'), title.encode('UTF8','replace'), creator.encode('UTF8', 'replace'))
Assine a newsletter para receber em seu email as publicações atualizadas neste blog
Desenvolvedor Full-Stack, entusiasta de tecnologia e apaixonado por compartilhar conhecimento através deste blog.
Categorias