summaryrefslogtreecommitdiff
path: root/unbiasedObjects.py
diff options
context:
space:
mode:
authorsstvinc2 <sstvinc2@gmail.com>2017-02-14 21:02:29 -0600
committersstvinc2 <sstvinc2@gmail.com>2017-02-14 21:02:29 -0600
commit7ceea6a5a495302ffdec9921ea9f841a2b6df8c2 (patch)
tree15df09ca79207e0c87a7460adbe1476b1627e634 /unbiasedObjects.py
parent82166863a0c4a8c101d041123c4ac2f098c9ef9a (diff)
New parsing method started
Got NYT up and running with new object type and custom parser
Diffstat (limited to 'unbiasedObjects.py')
-rw-r--r--unbiasedObjects.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/unbiasedObjects.py b/unbiasedObjects.py
index b1f6ec5..2233b0c 100644
--- a/unbiasedObjects.py
+++ b/unbiasedObjects.py
@@ -15,6 +15,21 @@ class Article():
def __str__(self):
return '-----------\n'+self.title+'\n'+self.source+'\n'+self.description+'\n'+self.url+'\n'+self.img+'\n'+'-----------'
+
+class NewsSource2():
+ name=''
+ url=''
+ h1Arr=[]
+ h2Arr=[]
+ h3Arr=[]
+ def __init__(self, name, url, h1Arr, h2Arr, h3Arr):
+ self.name=name
+ self.url=url
+ self.h1Arr=h1Arr
+ self.h2Arr=h2Arr
+ self.h3Arr=h3Arr
+
+
class NewsSource():
name=''