mirror of https://github.com/pikami/tiktok-dl.git
default limit value updated; WaitReady(video) removed
This commit is contained in:
parent
b6bb470064
commit
68612282ee
|
@ -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),
|
||||||
)
|
)
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue