소스 검색

updated elciudadano url

Pablo Yaksic 2 달 전
부모
커밋
5152809031
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      src/portales/elciudadano/handler.ts

+ 1 - 4
src/portales/elciudadano/handler.ts

@@ -5,15 +5,12 @@ import Portal from "../portal";
 import ScraperMethods from "../../enums/scraper-methods";
 
 const name = "El Ciudadano";
-const currentDate = new Date();
-const options: Intl.DateTimeFormatOptions = { timeZone: "America/Santiago", year: "numeric" };
-const currentYear = new Intl.DateTimeFormat("es-CL", options).format(currentDate);
 
 export const handler: Handler = new Portal(
   name,
   config.MASTODON_KEY_ELCIUDADANO,
   {
-    url: config.ELCIUDADANO + currentYear,
+    url: config.ELCIUDADANO,
     articlesSelector: "article",
     titleSelector: "h3",
     linkSelector: "a",