Skip to content

Commit

Permalink
Merge branch 'l/bug-fixes#95'
Browse files Browse the repository at this point in the history
  • Loading branch information
CianLR committed Feb 22, 2016
2 parents 313e416 + 797c665 commit 01c7e5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ def get_feed_data(self, rss_url):
feed = feedparser.parse(rss_url)
items_list = []
for item in feed['entries']:
date = item['published_parsed'] if 'published_parsed' in item else item['updated_parsed']
items_list.append({
'name':item['title'],
'link':item['link'],
'pub_date':datetime(*item['published_parsed'][:6]),
'pub_date':datetime(*date[:6]),
'article_text':''#self._parse_from_web(item['link']),
})
return items_list
Expand Down

0 comments on commit 01c7e5a

Please sign in to comment.