Browse Source

latercer changed to puppeteer

Pablo Barrera Yaksic 1 week ago
parent
commit
723f81fcd1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/portales/latercera/handler.ts

+ 2 - 2
src/portales/latercera/handler.ts

@@ -7,7 +7,7 @@ import ScraperMethods from "../../enums/scraper-methods";
 const name = "La Tercera";
 const name = "La Tercera";
 
 
 export const handler: Handler = new Portal(
 export const handler: Handler = new Portal(
-  name, 
+  name,
   config.MASTODON_KEY_LATERCERA,
   config.MASTODON_KEY_LATERCERA,
   {
   {
     url: config.LATERCERA,
     url: config.LATERCERA,
@@ -15,7 +15,7 @@ export const handler: Handler = new Portal(
     titleSelector: "div.headline",
     titleSelector: "div.headline",
     linkSelector: "div.headline a",
     linkSelector: "div.headline a",
     linkPrefix: "https://www.latercera.cl",
     linkPrefix: "https://www.latercera.cl",
-    scraperMethod: ScraperMethods.AXIOS,
+    scraperMethod: ScraperMethods.PUPPETEER,
     cacheExpiration: 60 * 60 * 24 * 5, // 5 días
     cacheExpiration: 60 * 60 * 24 * 5, // 5 días
     hashtags: ["LaTercera", "LT", "Noticias"]
     hashtags: ["LaTercera", "LT", "Noticias"]
   }
   }