summaryrefslogtreecommitdiff
path: root/main.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 /main.py
parent82166863a0c4a8c101d041123c4ac2f098c9ef9a (diff)
New parsing method started
Got NYT up and running with new object type and custom parser
Diffstat (limited to 'main.py')
-rw-r--r--main.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.py b/main.py
index 163f73a..63fd908 100644
--- a/main.py
+++ b/main.py
@@ -2,6 +2,7 @@
from unbiasedObjects import *
from unbiasedFunctions import *
+from parser import *
import time
def main():
@@ -67,7 +68,10 @@ def run():
None, None))
+ nyt=buildNYT()
+ sourceList.append(nyt)
+ '''
sourceList.append(NewsSource('New York Times',
'http://nytimes.com',
['<a href="'],
@@ -76,6 +80,10 @@ def run():
'<div class="b-column column">', '<!-- close photo-spot-region -->',
'section id="top-news" class="top-news"', '</div><!-- close a-column -->',
'class="second-column-region region"', 'html.geo-dma-501 .nythpNYRegionPromo'))
+ '''
+
+
+
sourceList.append(NewsSource('Fox News',
'http://foxnews.com',