Parcourir la source

added proxy config video-streams

Pablo il y a 1 semaine
Parent
commit
a0e2bfd70d
2 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 1 1
      package.json
  2. 2 1
      src/agents/video-streams/index.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "bot-noticias",
-  "version": "0.0.29",
+  "version": "0.0.30",
   "description": "Bot que busca noticias y las replica en mastodon.cl",
   "main": "dist/index.js",
   "scripts": {

+ 2 - 1
src/agents/video-streams/index.ts

@@ -103,7 +103,8 @@ export default class VideoStreams {
           scraperMethod: ScraperMethods.PUPPETEER,
           screenshotSelector: this._selector,
           screenshotDelay: config.VIDEO_STREAMS_SCREENSHOT_DELAY,
-          clickSelector: this._clickSelector
+          clickSelector: this._clickSelector,
+          useProxy: true
         });
 
         const screenshotBase64 = response?.data?.data?.screenshot;