Add The Economist grabbers.

This commit is contained in:
Jack Hadrill 2020-01-18 22:30:26 +00:00
parent f9781cc3ed
commit c27aaeb827
4 changed files with 21 additions and 0 deletions

6
run.py
View File

@ -16,6 +16,9 @@ from sources.NYTBusiness import NYTBusiness
from sources.NYTTechnology import NYTTechnology
from sources.ReutersBusiness import ReutersBusiness
from sources.ReutersTechnology import ReutersTechnology
from sources.TheEconomistBusiness import TheEconomistBusiness
from sources.TheEconomistFinance import TheEconomistFinance
from sources.TheEconomistTechnology import TheEconomistTechnology
from sources.Wired import Wired
DATABASE_PATH = Path("storage.db")
@ -44,6 +47,9 @@ def main():
NYTTechnology(db),
ReutersBusiness(db),
ReutersTechnology(db),
TheEconomistBusiness(db),
TheEconomistFinance(db),
TheEconomistTechnology(db),
Wired(db),
]

View File

@ -0,0 +1,5 @@
from grabber import Grabber
class TheEconomistBusiness(Grabber):
feed_url = "https://www.economist.com/business/rss.xml"

View File

@ -0,0 +1,5 @@
from grabber import Grabber
class TheEconomistFinance(Grabber):
feed_url = "https://www.economist.com/finance-and-economics/rss.xml"

View File

@ -0,0 +1,5 @@
from grabber import Grabber
class TheEconomistTechnology(Grabber):
feed_url = "https://www.economist.com/science-and-technology/rss.xml"