diff options
author | sstvinc2 <sstvinc2@gmail.com> | 2017-02-14 21:02:29 -0600 |
---|---|---|
committer | sstvinc2 <sstvinc2@gmail.com> | 2017-02-14 21:02:29 -0600 |
commit | 7ceea6a5a495302ffdec9921ea9f841a2b6df8c2 (patch) | |
tree | 15df09ca79207e0c87a7460adbe1476b1627e634 /main.py | |
parent | 82166863a0c4a8c101d041123c4ac2f098c9ef9a (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.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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', |