diff options
author | Matt Singleton <matt@xcolour.net> | 2019-01-12 23:26:59 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2019-01-12 23:26:59 -0500 |
commit | f61c1a3de8a1b16778913b007c59e7e311f33cb8 (patch) | |
tree | 14e5d36aa0da39780bf7457c1f60b97383bf2d49 | |
parent | a7292dfe34a3ff9e45af797ea086c05250fdf44a (diff) |
get watermark free bbc imagesbuild-17
-rw-r--r-- | unbiased/sources/bbc.py | 4 |
1 files changed, 4 insertions, 0 deletions
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') |