From fef91ae7e634ad568e4abb4c90ded51954192e91 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Sat, 18 Jan 2020 20:05:17 +0000 Subject: [PATCH] Add Forbes grabbers. --- run.py | 4 ++++ sources/ForbesBusiness.py | 5 +++++ sources/ForbesTechnology.py | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 sources/ForbesBusiness.py create mode 100644 sources/ForbesTechnology.py diff --git a/run.py b/run.py index 8ba6db8..f3d48b8 100644 --- a/run.py +++ b/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: diff --git a/sources/ForbesBusiness.py b/sources/ForbesBusiness.py new file mode 100644 index 0000000..0eda489 --- /dev/null +++ b/sources/ForbesBusiness.py @@ -0,0 +1,5 @@ +from grabber import Grabber + + +class ForbesBusiness(Grabber): + feed_url = "http://www.forbes.com/business/feed/" diff --git a/sources/ForbesTechnology.py b/sources/ForbesTechnology.py new file mode 100644 index 0000000..63cf705 --- /dev/null +++ b/sources/ForbesTechnology.py @@ -0,0 +1,5 @@ +from grabber import Grabber + + +class ForbesTechnology(Grabber): + feed_url = "http://www.forbes.com/technology/feed/"