From a928a4beeeef32dd8454c80fe8c145be9ea39e0a Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Sat, 18 Jan 2020 21:16:34 +0000 Subject: [PATCH] Add Wired grabber. --- run.py | 2 ++ sources/Wired.py | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 sources/Wired.py diff --git a/run.py b/run.py index ec8847d..5d07667 100644 --- a/run.py +++ b/run.py @@ -13,6 +13,7 @@ from sources.ForbesBusiness import ForbesBusiness from sources.ForbesTechnology import ForbesTechnology from sources.FinancialTimes import FinancialTimes from sources.MacWorld import MacWorld +from sources.Wired import Wired DATABASE_PATH = Path("storage.db") GRAB_FREQUENCY = 15 @@ -37,6 +38,7 @@ def main(): ForbesTechnology(db), FinancialTimes(db), MacWorld(db), + Wired(db), ] while True: diff --git a/sources/Wired.py b/sources/Wired.py new file mode 100644 index 0000000..8d3934e --- /dev/null +++ b/sources/Wired.py @@ -0,0 +1,5 @@ +from grabber import Grabber + + +class Wired(Grabber): + feed_url = "http://www.wired.com/feed"