import { type Handler } from "aws-lambda"; import config from "../../config"; import Portal from "../portal"; import ScraperMethods from "../../enums/scraper-methods"; const name = "Cambio21"; export const handler: Handler = new Portal( name, config.MASTODON_KEY_CAMBIO21, { url: config.CAMBIO21, articlesSelector: ".news-post.image-post, .news-post.video-post", titleSelector: "h2 a", linkSelector: "h2 a", imageSelector: "img", scraperMethod: ScraperMethods.AXIOS, maxArticles: 20, hashtags: ["Cambio21", "Noticias"] } ).getHandler();