handler.ts 491 B

12345678910111213141516171819
  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 Mostrado";
  6. export const handler: Handler = new Portal(
  7. name,
  8. config.MASTODON_KEY_ELMOSTRADOR,
  9. {
  10. url: config.ELMOSTRADOR,
  11. articlesSelector: "div.d-section__body div.d-tag-card",
  12. titleSelector: "h4",
  13. linkSelector: "h4 a",
  14. scraperMethod: ScraperMethods.AXIOS
  15. }
  16. ).getHandler();