> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Newspaper

> NewspaperTools uses the newspaper3k library's Article class to expose a get_article_text function that downloads and parses article text from a URL.

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

## Prerequisites

The following example requires the `newspaper3k` and `lxml_html_clean` libraries.

```shell theme={null}
uv pip install -U newspaper3k lxml_html_clean openai
```

## Example

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

```python cookbook/91_tools/newspaper_tools.py theme={null}
from agno.agent import Agent
from agno.tools.newspaper import NewspaperTools

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

## Toolkit Params

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

## Toolkit Functions

| 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. |

## Developer Resources

* [Tools](https://github.com/agno-agi/agno/blob/main/libs/agno/agno/tools/newspaper.py)
