> For the complete documentation index, see [llms.txt](https://docs.projectbit.ca/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.projectbit.ca/documentation/tools/newspaper.md).

# Newspaper

**NewspaperTools** enable an Agent to read news articles using the Newspaper4k library.

### [​](https://docs.phidata.com/tools/newspaper#prerequisites)Prerequisites <a href="#prerequisites" id="prerequisites"></a>

The following example requires the `newspaper3k` library.

```shell
pip install -U newspaper3k
```

### [​](https://docs.phidata.com/tools/newspaper#example)Example <a href="#example" id="example"></a>

The following agent will summarize the wikipedia article on language models.

cookbook/tools/newspaper\_tools.py

```python
from bitca.agent import Agent
from bitca.tools.newspaper_tools import NewspaperTools

agent = Agent(tools=[NewspaperTools()])
agent.print_response("Please summarize https://en.wikipedia.org/wiki/Language_model")
```

### [​](https://docs.phidata.com/tools/newspaper#toolkit-params)Toolkit Params <a href="#toolkit-params" id="toolkit-params"></a>

| Parameter          | Type   | Default | Description                                                   |
| ------------------ | ------ | ------- | ------------------------------------------------------------- |
| `get_article_text` | `bool` | `True`  | Enables the functionality to retrieve the text of an article. |

### [​](https://docs.phidata.com/tools/newspaper#toolkit-functions)Toolkit Functions <a href="#toolkit-functions" id="toolkit-functions"></a>

| Function           | Description                                                                                                                                                                             |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `get_article_text` | Retrieves the text of an article from a specified URL. Parameters include `url` for the URL of the article. Returns the text of the article or an error message if the retrieval fails. |
