summaryrefslogtreecommitdiff
path: root/unbiasedObjects.py
diff options
context:
space:
mode:
authorssstvinc2 <sstvinc2@gmail.com>2017-02-11 19:14:43 -0500
committerssstvinc2 <sstvinc2@gmail.com>2017-02-11 19:14:43 -0500
commitc233a25ea868496557d1ea211addbf87d388b4ce (patch)
tree84e561a396c13b434ef216efa0e6e42d795db25b /unbiasedObjects.py
parent195ff07f697ffd486619f55320e5f3e8813a8eba (diff)
Added BBC as source; added stubURL functionality
Diffstat (limited to 'unbiasedObjects.py')
-rw-r--r--unbiasedObjects.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/unbiasedObjects.py b/unbiasedObjects.py
index 56530c5..b1f6ec5 100644
--- a/unbiasedObjects.py
+++ b/unbiasedObjects.py
@@ -36,12 +36,15 @@ class NewsSource():
h1Arr=None
h2Arr=None
h3Arr=None
-
+ #url to attach to stub links
+ stubURL=''
+
def __init__(self, name, url,
h1DelStart, h2DelStart, h3DelStart,
h1SectionDividerStart=None, h1SectionDividerEnd=None,
h2SectionDividerStart=None, h2SectionDividerEnd=None,
- h3SectionDividerStart=None, h3SectionDividerEnd=None):
+ h3SectionDividerStart=None, h3SectionDividerEnd=None,
+ stubURL=None):
self.name=name
self.url=url
self.h1DelStart=h1DelStart
@@ -56,6 +59,7 @@ class NewsSource():
self.h1Arr=[]
self.h2Arr=[]
self.h3Arr=[]
+ self.stubURL=stubURL
def addArticle(self, article, level):
if level==1: