default limit value updated; WaitReady(video) removed

This commit is contained in:
alexpin 2020-02-25 20:55:56 +02:00
parent b6bb470064
commit 68612282ee
2 changed files with 1 additions and 2 deletions

View File

@ -65,7 +65,6 @@ func runScrapeWithInfo(ctx context.Context, jsAction string, url string) string
// Navigate to user's page // Navigate to user's page
chromedp.Navigate(url), chromedp.Navigate(url),
// Execute url grabber script // Execute url grabber script
chromedp.WaitReady("video"),
chromedp.EvaluateAsDevTools(utils.ReadFileAsString("scraper.js"), &jsOutput), chromedp.EvaluateAsDevTools(utils.ReadFileAsString("scraper.js"), &jsOutput),
chromedp.EvaluateAsDevTools(jsAction, &jsOutput), chromedp.EvaluateAsDevTools(jsAction, &jsOutput),
) )

View File

@ -30,7 +30,7 @@ optStrings = {
currentState = { currentState = {
preloadCount: 0, preloadCount: 0,
finished: false, finished: false,
limit: 100 limit: 0
}; };
createVidUrlElement = function(outputObj) { createVidUrlElement = function(outputObj) {