From 68612282ee0be68bfbd944541840d172c13e98d9 Mon Sep 17 00:00:00 2001 From: alexpin Date: Tue, 25 Feb 2020 20:55:56 +0200 Subject: [PATCH] default limit value updated; WaitReady(video) removed --- client/executeClientAction.go | 1 - scraper.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/executeClientAction.go b/client/executeClientAction.go index 94b02dc..ca821c8 100644 --- a/client/executeClientAction.go +++ b/client/executeClientAction.go @@ -65,7 +65,6 @@ func runScrapeWithInfo(ctx context.Context, jsAction string, url string) string // Navigate to user's page chromedp.Navigate(url), // Execute url grabber script - chromedp.WaitReady("video"), chromedp.EvaluateAsDevTools(utils.ReadFileAsString("scraper.js"), &jsOutput), chromedp.EvaluateAsDevTools(jsAction, &jsOutput), ) diff --git a/scraper.js b/scraper.js index 740cb06..e2446c5 100644 --- a/scraper.js +++ b/scraper.js @@ -30,7 +30,7 @@ optStrings = { currentState = { preloadCount: 0, finished: false, - limit: 100 + limit: 0 }; createVidUrlElement = function(outputObj) {