fix zombie knight scraper
This commit is contained in:
parent
116154a111
commit
f99217e14d
|
@ -76,7 +76,7 @@ def scrape_zombie_knight(soup):
|
||||||
for entry in entries[:20]:
|
for entry in entries[:20]:
|
||||||
entry_dict = {}
|
entry_dict = {}
|
||||||
entry_dict['title'] = entry.title.text
|
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 = entry.updated.text
|
||||||
date = "".join(re.search("(.*)\.\d{3}(.\d{2}):(\d{2})", date).groups())
|
date = "".join(re.search("(.*)\.\d{3}(.\d{2}):(\d{2})", date).groups())
|
||||||
date = time.strptime(date, '%Y-%m-%dT%H:%M:%S%z')
|
date = time.strptime(date, '%Y-%m-%dT%H:%M:%S%z')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user