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