diff --git a/newspaper/extractors.py b/newspaper/extractors.py index 253742b3..6a9a417e 100644 --- a/newspaper/extractors.py +++ b/newspaper/extractors.py @@ -316,7 +316,9 @@ def get_meta_img_url(self, article_url, doc): top_meta_image = try_one or try_two or try_three or try_four - return urllib.parse.urljoin(article_url, top_meta_image) + if top_meta_image: + return urllib.parse.urljoin(article_url, top_meta_image) + return u'' def get_meta_type(self, doc): """Returns meta type of article, open graph protocol