Skip to content

Commit

Permalink
fix #255
Browse files Browse the repository at this point in the history
  • Loading branch information
fhamborg committed Dec 27, 2023
1 parent b54f3ba commit 4231dc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions newsplease/__init__.py
Expand Up @@ -111,7 +111,7 @@ def from_html(html, url=None, download_date=None, fetch_images=True):
return final_article

@staticmethod
def from_url(url, timeout=None, user_agent=SimpleCrawler.USER_AGENT):
def from_url(url, timeout=None, user_agent=None):
"""
Crawls the article from the url and extracts relevant information.
:param url:
Expand All @@ -126,7 +126,7 @@ def from_url(url, timeout=None, user_agent=SimpleCrawler.USER_AGENT):
return None

@staticmethod
def from_urls(urls, timeout=None, user_agent=SimpleCrawler.USER_AGENT):
def from_urls(urls, timeout=None, user_agent=None):
"""
Crawls articles from the urls and extracts relevant information.
:param urls:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

setup(name='news-please',
version='1.5.43',
version='1.5.44',
description="news-please is an open source easy-to-use news extractor that just works.",
long_description="""\
news-please is an open source, easy-to-use news crawler that extracts structured information from almost any news website. It can follow recursively internal hyperlinks and read RSS feeds to fetch both most recent and also old, archived articles. You only need to provide the root URL of the news website. Furthermore, its API allows developers to access the exctraction functionality within their software. news-please also implements a workflow optimized for the news archive provided by commoncrawl.org, allowing users to efficiently crawl and extract news articles including various filter options.""",
Expand Down

0 comments on commit 4231dc3

Please sign in to comment.