diff --git a/server.py b/server.py index 678b524..318dbbf 100644 --- a/server.py +++ b/server.py @@ -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,