handler.ts 601 B

123456789101112131415161718192021
  1. import { type Handler } from "aws-lambda";
  2. import config from "../../config";
  3. import Portal from "../portal";
  4. import ScraperMethods from "../../enums/scraper-methods";
  5. const name = "El Desconcierto";
  6. export const handler: Handler = new Portal(
  7. name,
  8. config.MASTODON_KEY_ELDESCONCIERTO,
  9. {
  10. url: config.ELDESCONCIERTO + "/actualidad",
  11. articlesSelector: "article",
  12. titleSelector: "div.news-article__title-wrapper",
  13. linkSelector: "a",
  14. linkPrefix: config.ELDESCONCIERTO,
  15. scraperMethod: ScraperMethods.AXIOS,
  16. hashtags: ["ElDesconcierto", "Noticias"]
  17. }
  18. ).getHandler();