Skip to content

Commit

Permalink
fix: type conversion list -> set
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Poluksht <[email protected]>
  • Loading branch information
vpol committed Apr 25, 2023
1 parent 7d34fc9 commit b75385a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newspaper/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def get_img_urls(self, article_url, doc):
for img_tag in img_tags if img_tag.get('src')]
img_links = set([urljoin(article_url, url)
for url in urls])
img_links = [x for x in img_links if not self.image_is_ignored(x)]
img_links = set([x for x in img_links if not self.image_is_ignored(x)])
return img_links

def get_first_img_url(self, article_url, top_node):
Expand Down

0 comments on commit b75385a

Please sign in to comment.