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')