handler.ts 453 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 = "Diario Financiero";
  6. export const handler: Handler = new Portal(
  7. name,
  8. config.MASTODON_KEY_DF,
  9. {
  10. url: config.DF,
  11. articlesSelector: "article",
  12. titleSelector: "h3 a",
  13. linkSelector: "h3 a",
  14. scraperMethod: ScraperMethods.AXIOS
  15. }
  16. ).getHandler();