Add The Economist grabbers.
This commit is contained in:
parent
f9781cc3ed
commit
c27aaeb827
6
run.py
6
run.py
@ -16,6 +16,9 @@ from sources.NYTBusiness import NYTBusiness
|
|||||||
from sources.NYTTechnology import NYTTechnology
|
from sources.NYTTechnology import NYTTechnology
|
||||||
from sources.ReutersBusiness import ReutersBusiness
|
from sources.ReutersBusiness import ReutersBusiness
|
||||||
from sources.ReutersTechnology import ReutersTechnology
|
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
|
from sources.Wired import Wired
|
||||||
|
|
||||||
DATABASE_PATH = Path("storage.db")
|
DATABASE_PATH = Path("storage.db")
|
||||||
@ -44,6 +47,9 @@ def main():
|
|||||||
NYTTechnology(db),
|
NYTTechnology(db),
|
||||||
ReutersBusiness(db),
|
ReutersBusiness(db),
|
||||||
ReutersTechnology(db),
|
ReutersTechnology(db),
|
||||||
|
TheEconomistBusiness(db),
|
||||||
|
TheEconomistFinance(db),
|
||||||
|
TheEconomistTechnology(db),
|
||||||
Wired(db),
|
Wired(db),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
5
sources/TheEconomistBusiness.py
Normal file
5
sources/TheEconomistBusiness.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from grabber import Grabber
|
||||||
|
|
||||||
|
|
||||||
|
class TheEconomistBusiness(Grabber):
|
||||||
|
feed_url = "https://www.economist.com/business/rss.xml"
|
5
sources/TheEconomistFinance.py
Normal file
5
sources/TheEconomistFinance.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from grabber import Grabber
|
||||||
|
|
||||||
|
|
||||||
|
class TheEconomistFinance(Grabber):
|
||||||
|
feed_url = "https://www.economist.com/finance-and-economics/rss.xml"
|
5
sources/TheEconomistTechnology.py
Normal file
5
sources/TheEconomistTechnology.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from grabber import Grabber
|
||||||
|
|
||||||
|
|
||||||
|
class TheEconomistTechnology(Grabber):
|
||||||
|
feed_url = "https://www.economist.com/science-and-technology/rss.xml"
|
Loading…
x
Reference in New Issue
Block a user