Add Wired grabber.

This commit is contained in:
Jack Hadrill 2020-01-18 21:16:34 +00:00
parent 970607ab18
commit a928a4beee
2 changed files with 7 additions and 0 deletions

2
run.py
View File

@ -13,6 +13,7 @@ from sources.ForbesBusiness import ForbesBusiness
from sources.ForbesTechnology import ForbesTechnology from sources.ForbesTechnology import ForbesTechnology
from sources.FinancialTimes import FinancialTimes from sources.FinancialTimes import FinancialTimes
from sources.MacWorld import MacWorld from sources.MacWorld import MacWorld
from sources.Wired import Wired
DATABASE_PATH = Path("storage.db") DATABASE_PATH = Path("storage.db")
GRAB_FREQUENCY = 15 GRAB_FREQUENCY = 15
@ -37,6 +38,7 @@ def main():
ForbesTechnology(db), ForbesTechnology(db),
FinancialTimes(db), FinancialTimes(db),
MacWorld(db), MacWorld(db),
Wired(db),
] ]
while True: while True:

5
sources/Wired.py Normal file
View File

@ -0,0 +1,5 @@
from grabber import Grabber
class Wired(Grabber):
feed_url = "http://www.wired.com/feed"