|
|
@@ -11,12 +11,15 @@ export const handler: Handler = new Portal(
|
|
|
config.MASTODON_KEY_LATERCERA,
|
|
|
{
|
|
|
url: config.LATERCERA,
|
|
|
- articlesSelector: "section.top-mainy article.card",
|
|
|
- titleSelector: "div.headline",
|
|
|
- linkSelector: "div.headline a",
|
|
|
- linkPrefix: "https://www.latercera.cl",
|
|
|
+ articlesSelector: ".story-card",
|
|
|
+ titleSelector: ".story-card__headline",
|
|
|
+ linkSelector: ".story-card__headline a",
|
|
|
+ contentSelector: ".story-card__description",
|
|
|
+ imageSelector: ".story-card__image img",
|
|
|
+ linkPrefix: "https://www.latercera.com",
|
|
|
scraperMethod: ScraperMethods.PUPPETEER,
|
|
|
cacheExpiration: 60 * 60 * 24 * 5, // 5 días
|
|
|
+ maxArticles: 20,
|
|
|
hashtags: ["LaTercera", "LT", "Noticias"]
|
|
|
}
|
|
|
).getHandler();
|