From 155a981b6ded503884737d85e6c8a4c08e93f4e3 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Sat, 18 Jan 2020 21:20:48 +0000 Subject: [PATCH] Add Huffington Post grabbers. --- run.py | 4 ++++ sources/HuffingtonPostBusiness.py | 5 +++++ sources/HuffingtonPostTechnology.py | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 sources/HuffingtonPostBusiness.py create mode 100644 sources/HuffingtonPostTechnology.py diff --git a/run.py b/run.py index b7c3cfe..8d67abe 100644 --- a/run.py +++ b/run.py @@ -15,6 +15,8 @@ from sources.FinancialTimes import FinancialTimes from sources.MacWorld import MacWorld from sources.Wired import Wired from sources.Engadget import Engadget +from sources.HuffingtonPostBusiness import HuffingtonPostBusiness +from sources.HuffingtonPostTechnology import HuffingtonPostTechnology DATABASE_PATH = Path("storage.db") GRAB_FREQUENCY = 15 @@ -41,6 +43,8 @@ def main(): MacWorld(db), Wired(db), Engadget(db), + HuffingtonPostBusiness(db), + HuffingtonPostTechnology(db), ] while True: diff --git a/sources/HuffingtonPostBusiness.py b/sources/HuffingtonPostBusiness.py new file mode 100644 index 0000000..8e4f60d --- /dev/null +++ b/sources/HuffingtonPostBusiness.py @@ -0,0 +1,5 @@ +from grabber import Grabber + + +class HuffingtonPostBusiness(Grabber): + feed_url = "https://www.huffpost.com/section/business/feed" diff --git a/sources/HuffingtonPostTechnology.py b/sources/HuffingtonPostTechnology.py new file mode 100644 index 0000000..c7ee485 --- /dev/null +++ b/sources/HuffingtonPostTechnology.py @@ -0,0 +1,5 @@ +from grabber import Grabber + + +class HuffingtonPostTechnology(Grabber): + feed_url = "https://www.huffpost.com/section/technology/feed"