Skip to content

Commit

Permalink
adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
fhamborg committed Sep 4, 2024
1 parent c4c3d0a commit f5a7568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ print(article.title)
```
A sample of an extracted article can be found [here (as a JSON file)](https://github.com/fhamborg/news-please/blob/master/newsplease/examples/sample.json).

If you want to crawl multiple articles at a time, optionally with a timeout in seconds
If you want to crawl multiple articles at a time, optionally with any optional parameter taken by [requests.request()](https://requests.readthedocs.io/en/latest/api/#requests.request)
```python
NewsPlease.from_urls([url1, url2, ...], timeout=6)
NewsPlease.from_urls([url1, url2, ...], request_args={"timeout": 6})
```
or if you have a file containing all URLs (each line containing a single URL)
```python
Expand Down

0 comments on commit f5a7568

Please sign in to comment.