# Get the latest science news from CNN

**Use case:** 

Scrape CNN and get the latest science news. For each news post, main text in extracted (plain text or markdown format) with various metadata (title, description, author, data, categories, tags).

## Input

```json
{
  "article_urls": [
    "https://blog.apify.com/google-antigravity-for-lead-gen/"
  ],
  "article_links_urls": [
    {
      "url": "https://edition.cnn.com/science/",
      "auto": true,
      "external": false,
      "include": "",
      "exclude": ""
    }
  ],
  "max_links_by_url": 30,
  "markdown_text": true,
  "max_hl_snippets": 3,
  "date_from": "30 days",
  "or_post_filters": false,
  "compute_stats": false,
  "only_valid_stats": false,
  "proxy_settings": {
    "useApifyProxy": false
  },
  "max_retries": 3,
  "timeout": 30
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "author": {
    "label": "Author",
    "format": "text"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "domain": {
    "label": "Domain",
    "format": "text"
  },
  "date": {
    "label": "Date",
    "format": "date"
  },
  "categories": {
    "label": "Categories",
    "format": "text"
  },
  "tags": {
    "label": "Tags",
    "format": "text"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "search_terms": {
    "label": "Search Terms",
    "format": "text"
  },
  "search_highlights": {
    "label": "Search highlights",
    "format": "text"
  },
  "valid_date": {
    "label": "Valid Date",
    "format": "boolean"
  },
  "valid": {
    "label": "Valid Article",
    "format": "boolean"
  },
  "text": {
    "label": "Content",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Generic Articles Main Content Extractor](https://apify.com/nlp_data_lni/generic-articles-content-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/nlp_data_lni/generic-articles-content-extractor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/nlp_data_lni/generic-articles-content-extractor.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
