fdsf
This commit is contained in:
parent
a60781405b
commit
5eadb50afc
|
@ -31,7 +31,6 @@ def fetchThalia():
|
|||
|
||||
# for each line in the table
|
||||
for i in items:
|
||||
print(i)
|
||||
# getting the identifier
|
||||
ids = i.xpath('@data-ean')
|
||||
post_id = 'empty' if len(ids) == 0 else ids[0]
|
||||
|
@ -53,11 +52,11 @@ def fetchThalia():
|
|||
titles = i.xpath('section/h3/text()')
|
||||
title = 'empty' if len(titles) == 0 else titles[0]
|
||||
|
||||
#date
|
||||
authors = i.xpath('/li/section/ul/li')
|
||||
#author
|
||||
authors = i.xpath('section/ul/li')
|
||||
author = ''
|
||||
for j in authors:
|
||||
author += j.xpath('/a/text()')[0]
|
||||
author += ( j.xpath('/a/text()')[0] + ", " )
|
||||
|
||||
feed.add_item(
|
||||
title=title,
|
||||
|
|
Loading…
Reference in a new issue