From 1b08ad4652091d529588f9fb75f7412a07d2dd28 Mon Sep 17 00:00:00 2001 From: sstvinc2 Date: Thu, 16 Feb 2017 21:20:01 -0600 Subject: Some parsing tweaks, mostly for The Guardian --- unbiasedFunctions.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'unbiasedFunctions.py') diff --git a/unbiasedFunctions.py b/unbiasedFunctions.py index de27228..748aed7 100644 --- a/unbiasedFunctions.py +++ b/unbiasedFunctions.py @@ -25,8 +25,20 @@ def buildArticle(url, sourceName):#, titleDelStart, titleDelEnd, imgDelStart, im if sourceName=='The Guardian': #The Guardian puts an identifying banner on their og:images #grab the main image from the page instead - img=content.split('')[0] if img[-1]=='/': -- cgit v1.2.3