Add Financial Times.

This commit is contained in:
Jack Hadrill 2020-01-18 21:04:49 +00:00
parent fef91ae7e6
commit f807ae0a45
2 changed files with 8 additions and 0 deletions

2
run.py
View File

@ -11,6 +11,7 @@ from sources.NYTBusiness import NYTBusiness
from sources.NYTTechnology import NYTTechnology
from sources.ForbesBusiness import ForbesBusiness
from sources.ForbesTechnology import ForbesTechnology
from sources.FinancialTimes import FinancialTimes
DATABASE_PATH = Path("storage.db")
GRAB_FREQUENCY = 15
@ -33,6 +34,7 @@ def main():
NYTTechnology(db),
ForbesBusiness(db),
ForbesTechnology(db),
FinancialTimes(db),
]
while True:

View File

@ -0,0 +1,6 @@
from grabber import Grabber
class FinancialTimes(Grabber):
feed_url = "https://www.ft.com/?format=rss&edition=uk"
date_format = "%a, %d %b %Y %H:%M:%S %Z"