Remove unnecessary comments and blank lines.
This commit is contained in:
parent
47c66592d9
commit
04a6707157
|
@ -63,7 +63,6 @@ class Grabber(ABC):
|
|||
articles = []
|
||||
for article in feed.iter("item"):
|
||||
try:
|
||||
# Sat, 18 Jan 2020 14:21:49 -0500
|
||||
timestamp = int(datetime.strptime(article.find("pubDate").text, self.date_format).timestamp())
|
||||
title = article.find("title").text
|
||||
description = article.find("description").text
|
||||
|
@ -89,4 +88,3 @@ class Grabber(ABC):
|
|||
logging.error(f"Unable to download updated news articles from {self.name}.")
|
||||
except (et.ParseError, ValueError):
|
||||
logging.error(f"Unable to parse updated news articles from {self.name}.")
|
||||
|
||||
|
|
|
@ -3,5 +3,4 @@ from grabber import Grabber
|
|||
|
||||
class IBTimesCompanies(Grabber):
|
||||
feed_url = "http://www.ibtimes.co.uk/rss/companies"
|
||||
# 2020-01-17T09:50:28+00:00
|
||||
date_format = "%Y-%m-%dT%H:%M:%S%z"
|
||||
|
|
|
@ -3,5 +3,4 @@ from grabber import Grabber
|
|||
|
||||
class IBTimesTechnology(Grabber):
|
||||
feed_url = "http://www.ibtimes.co.uk/rss/technology"
|
||||
# 2020-01-17T09:50:28+00:00
|
||||
date_format = "%Y-%m-%dT%H:%M:%S%z"
|
||||
|
|
Loading…
Reference in New Issue