handler.ts 547 B

1234567891011121314151617181920
  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 + "/lo-mas-reciente",
  11. articlesSelector: "article",
  12. titleSelector: "h2:first, h3:first",
  13. linkSelector: "a",
  14. linkPrefix: config.ELDESCONCIERTO,
  15. scraperMethod: ScraperMethods.AXIOS
  16. }
  17. ).getHandler();