Initial commit

This commit is contained in:
Eddie 2017-10-18 13:40:48 -05:00
parent 39a298a878
commit e6c24d627b
1 changed files with 23 additions and 0 deletions

23
infoRet.py Normal file
View File

@ -0,0 +1,23 @@
import feedparser as fp
datUniver = fp.parse('http://www.eluniversal.com.mx/seccion/1/rss.xml')
datJorn = fp.parse('http://www.jornada.unam.mx/rss/politica.xml?v=1')
# print(datUniver['feed']['link'] + '\n')
# print(datJorn['feed']['title'] + '\n')
# print(datUniver.headers['Date'])
# print(len(datUniver.entries))
# print(datUniver.entries[0])
# print(datUniver)
file = open('rss_univ.txt', 'a')
file.write(str(datUniver.headers['Date']) + ';\n')
file.write(str(datUniver) + ';\n')
file.write(str(datJorn.headers['Date']) + ';\n')
file.write(str(datJorn) + ';\n')
file.close()