Extract Latest News

Site elcomercio.peTask latest-newsVersion v2Updated Aug 2, 2026Category news

Retrieve the latest news items from El Comercio's latest-news listing. This skill was captured from a live agent session on elcomercio.pe and publishes here verbatim, exactly as an agent receives it.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.

Purpose

Retrieve the first 10 latest news items from El Comercio, including each headline and its article URL.

When to Use

Use for requests to obtain the latest or most recent news from elcomercio.pe.

Workflow

  1. Navigate directly to https://elcomercio.pe/ultimas-noticias/; the homepage is not required.
  2. On the loaded page, run this evaluator to return the first 10 headline records:
(() =>
  [...document.querySelectorAll("h2")].slice(0, 10).map((h) => ({
    title: h.textContent.trim(),
    url:
      h.closest("article")?.querySelector("a[href]")?.href ||
      h.querySelector("a[href]")?.href ||
      null,
  })))();

Site-Specific Gotchas

  • The latest-news listing is available at the stable direct path /ultimas-noticias/; avoid the homepage and navigation clicks.
  • Headlines are represented by h2 elements. Article links are usually found within the enclosing article; the evaluator falls back to a link inside the heading.
  • An advertising overlay may expose button#adk_closing-x. Dismiss it only if it blocks interaction or evaluation; it is not otherwise required.
  • The first 10 h2 elements are treated as the requested latest items; verify that returned records have non-null URLs if the page layout changes.

Expected Output

An array of up to 10 objects in page order, each shaped as: {"title":"<headline>","url":"<absolute article URL>"}

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=elcomercio.pe&task=latest-news