From 5eadb50afc5bb8d7cfffcb928b85318400c18bbb Mon Sep 17 00:00:00 2001 From: Aeris Date: Fri, 2 Jul 2021 20:16:08 +0200 Subject: [PATCH] fdsf --- server.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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,