From f61c1a3de8a1b16778913b007c59e7e311f33cb8 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 12 Jan 2019 23:26:59 -0500 Subject: get watermark free bbc images --- unbiased/sources/bbc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unbiased/sources/bbc.py b/unbiased/sources/bbc.py index 0dd0f80..caceced 100644 --- a/unbiased/sources/bbc.py +++ b/unbiased/sources/bbc.py @@ -24,3 +24,7 @@ class BBC(NewsSource): h3s = tuple(x.find('a', class_='title-link')['href'] for x in h3s) return h1s, h2s, h3s + + @classmethod + def _get_image(cls, soup): + return soup.find('meta', property='og:image')['content'].replace('branded_news', 'cpsprodpb') -- cgit v1.2.3