| 12345678910111213141516171819202122232425 |
- import { type Handler } from "aws-lambda";
- import config from "../../config";
- import Portal from "../portal";
- import ScraperMethods from "../../enums/scraper-methods";
- const name = "La Tercera";
- export const handler: Handler = new Portal(
- name,
- config.MASTODON_KEY_LATERCERA,
- {
- url: config.LATERCERA,
- articlesSelector: ".story-card",
- titleSelector: ".story-card__headline",
- linkSelector: ".story-card__headline a",
- contentSelector: ".story-card__description",
- imageSelector: ".story-card__image img",
- linkPrefix: "https://www.latercera.com",
- scraperMethod: ScraperMethods.PUPPETEER,
- cacheExpiration: 60 * 60 * 24 * 5, // 5 días
- maxArticles: 20,
- hashtags: ["LaTercera", "LT", "Noticias"]
- }
- ).getHandler();
|