summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorssstvinc2 <sstvinc2@gmail.com>2017-02-10 16:33:43 -0500
committerssstvinc2 <sstvinc2@gmail.com>2017-02-10 16:33:43 -0500
commitb3b5364c5bbb8a8e5c042e3e36d75b2aea4b2e7b (patch)
tree2c7ea7e7bd96efc9c3121fadcb4698869314e95f
parent1e137e4e20f41f0e0055efff7d252de3ed417ed5 (diff)
NYT tweak
-rw-r--r--.gitignore4
-rwxr-xr-xmain.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 5ceb117..7293e95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
*.pyc
*~
__pycache__/
-scratch/*.html \ No newline at end of file
+scratch/*.html
+legacy_py/
+unbiased.html \ No newline at end of file
diff --git a/main.py b/main.py
index edec792..55c9560 100755
--- a/main.py
+++ b/main.py
@@ -61,7 +61,7 @@ def run():
sourceList.append(NewsSource('New York Times',
'http://nytimes.com',
['<a href="'],#'<h1 class="story-heading"><a href="'],#['"b-column column', 'h2 class="story-heading"><a href="'],
- ['<article', '<a href="'],
+ ['<article class="story theme-summary"', '<a href="'],
['<hr class="single-rule"', 'article class="story theme-summary', 'h2 class="story-heading"><a href="'],
'<div class="b-column column">', '<!-- close photo-spot-region -->',
'section id="top-news" class="top-news"', '</div><!-- close a-column -->',