import { type Handler } from "aws-lambda"; import config from "../../config"; import Portal from "../portal"; import ScraperMethods from "../../enums/scraper-methods"; const name = "EMOL - El Mercurio Online"; export const handler: Handler = new Portal( name, config.MASTODON_KEY_EMOL, { url: config.EMOL, articlesSelector: "div.cont_378_e_2015 div.col_center_noticia2-390px, div.cont_378_e_2015 div.col_center_noticia4dest-360px", titleSelector: "h1 a, h3 a", linkSelector: "h1 a, h3 a", linkPrefix: config.EMOL, scraperMethod: ScraperMethods.AXIOS, hashtags: ["Emol", "ElMercurioOnline", "ElMercurio", "Noticias"] } ).getHandler();