fix zombie knight scraper

This commit is contained in:
iou1name 2018-10-22 09:47:45 -04:00
parent 116154a111
commit f99217e14d

View File

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