Add Forbes grabbers.
This commit is contained in:
parent
8bc11c64ba
commit
fef91ae7e6
4
run.py
4
run.py
@ -9,6 +9,8 @@ from sources.ReutersBusiness import ReutersBusiness
|
||||
from sources.ReutersTechnology import ReutersTechnology
|
||||
from sources.NYTBusiness import NYTBusiness
|
||||
from sources.NYTTechnology import NYTTechnology
|
||||
from sources.ForbesBusiness import ForbesBusiness
|
||||
from sources.ForbesTechnology import ForbesTechnology
|
||||
|
||||
DATABASE_PATH = Path("storage.db")
|
||||
GRAB_FREQUENCY = 15
|
||||
@ -29,6 +31,8 @@ def main():
|
||||
ReutersTechnology(db),
|
||||
NYTBusiness(db),
|
||||
NYTTechnology(db),
|
||||
ForbesBusiness(db),
|
||||
ForbesTechnology(db),
|
||||
]
|
||||
|
||||
while True:
|
||||
|
5
sources/ForbesBusiness.py
Normal file
5
sources/ForbesBusiness.py
Normal file
@ -0,0 +1,5 @@
|
||||
from grabber import Grabber
|
||||
|
||||
|
||||
class ForbesBusiness(Grabber):
|
||||
feed_url = "http://www.forbes.com/business/feed/"
|
5
sources/ForbesTechnology.py
Normal file
5
sources/ForbesTechnology.py
Normal file
@ -0,0 +1,5 @@
|
||||
from grabber import Grabber
|
||||
|
||||
|
||||
class ForbesTechnology(Grabber):
|
||||
feed_url = "http://www.forbes.com/technology/feed/"
|
Loading…
x
Reference in New Issue
Block a user