summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorsstvinc2 <sstvinc2@gmail.com>2017-02-12 21:45:13 -0600
committersstvinc2 <sstvinc2@gmail.com>2017-02-12 21:45:13 -0600
commit9e4ab3d644929d467e1f3de6f456508d03d4db15 (patch)
treec5834b83773498f731b9a4a17736bba95c4879f7 /main.py
parent1289131d2300bd991a2a2308d2a9396364c3fb62 (diff)
Obfuscated h1 links
Added redirect files to the server. Main html template file now has static links to those files; those files are written with javascript redirect to actual articles.
Diffstat (limited to 'main.py')
-rw-r--r--[-rwxr-xr-x]main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 3d7b0ee..b18e6ce 100755..100644
--- a/main.py
+++ b/main.py
@@ -70,7 +70,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="'],
+ ['<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 -->',
@@ -95,7 +95,7 @@ def run():
#build the output file HTML
outputHTML=buildOutput(newsSourceArr)
#print the output file HTML
- printOutputHTML(outputHTML, '/var/www/html/index.html')#'unbiased.html')
+ printOutputHTML(outputHTML, '/var/www/html/index.html')
if __name__=="__main__":