From 5b36f594efc031361f68321aa2cca9beaefdaf33 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Sat, 18 Jan 2020 22:44:43 +0000 Subject: [PATCH] Add Forbes Finance grabber. --- run.py | 2 ++ sources/ForbesFinance.py | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 sources/ForbesFinance.py diff --git a/run.py b/run.py index e7950c1..ffee99b 100644 --- a/run.py +++ b/run.py @@ -8,6 +8,7 @@ from sources.BBCTechnology import BBCTechnology from sources.Engadget import Engadget from sources.FinancialTimes import FinancialTimes from sources.ForbesBusiness import ForbesBusiness +from sources.ForbesFinance import ForbesFinance from sources.ForbesTechnology import ForbesTechnology from sources.HuffingtonPostBusiness import HuffingtonPostBusiness from sources.HuffingtonPostTechnology import HuffingtonPostTechnology @@ -39,6 +40,7 @@ def main(): Engadget(db), FinancialTimes(db), ForbesBusiness(db), + ForbesFinance(db), ForbesTechnology(db), HuffingtonPostBusiness(db), HuffingtonPostTechnology(db), diff --git a/sources/ForbesFinance.py b/sources/ForbesFinance.py new file mode 100644 index 0000000..f8babec --- /dev/null +++ b/sources/ForbesFinance.py @@ -0,0 +1,5 @@ +from grabber import Grabber + + +class ForbesFinance(Grabber): + feed_url = "http://www.forbes.com/finance/feed/"