Add Financial Times.
This commit is contained in:
parent
fef91ae7e6
commit
f807ae0a45
2
run.py
2
run.py
@ -11,6 +11,7 @@ from sources.NYTBusiness import NYTBusiness
|
|||||||
from sources.NYTTechnology import NYTTechnology
|
from sources.NYTTechnology import NYTTechnology
|
||||||
from sources.ForbesBusiness import ForbesBusiness
|
from sources.ForbesBusiness import ForbesBusiness
|
||||||
from sources.ForbesTechnology import ForbesTechnology
|
from sources.ForbesTechnology import ForbesTechnology
|
||||||
|
from sources.FinancialTimes import FinancialTimes
|
||||||
|
|
||||||
DATABASE_PATH = Path("storage.db")
|
DATABASE_PATH = Path("storage.db")
|
||||||
GRAB_FREQUENCY = 15
|
GRAB_FREQUENCY = 15
|
||||||
@ -33,6 +34,7 @@ def main():
|
|||||||
NYTTechnology(db),
|
NYTTechnology(db),
|
||||||
ForbesBusiness(db),
|
ForbesBusiness(db),
|
||||||
ForbesTechnology(db),
|
ForbesTechnology(db),
|
||||||
|
FinancialTimes(db),
|
||||||
]
|
]
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
6
sources/FinancialTimes.py
Normal file
6
sources/FinancialTimes.py
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user