From f99217e14d33b2e384d1f0e67923ffa6e003bbef Mon Sep 17 00:00:00 2001 From: iou1name Date: Mon, 22 Oct 2018 09:47:45 -0400 Subject: [PATCH] fix zombie knight scraper --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index 22e15c3..c69ea3c 100644 --- a/database.py +++ b/database.py @@ -76,7 +76,7 @@ def scrape_zombie_knight(soup): for entry in entries[:20]: entry_dict = {} entry_dict['title'] = entry.title.text - entry_dict['link'] = soup.find("link", rel='alternate').get('href') + entry_dict['link'] = entry.find("link", rel='alternate').get('href') date = entry.updated.text date = "".join(re.search("(.*)\.\d{3}(.\d{2}):(\d{2})", date).groups()) date = time.strptime(date, '%Y-%m-%dT%H:%M:%S%z')