Skip to content

Report scroll progress and show progress bar#28

Open
josephinoo wants to merge 1 commit intorkwyu:mainfrom
josephinoo:main
Open

Report scroll progress and show progress bar#28
josephinoo wants to merge 1 commit intorkwyu:mainfrom
josephinoo:main

Conversation

@josephinoo
Copy link
Copy Markdown

Expose an in-page progress callback and hook it up to a CLI progress bar while processing pages. ScribdDownloader now starts a progress bar, exposes onScrollProgress to the page, updates the bar during evaluation, and stops it when done. PuppeteerSg gains a protocolTimeout option and emits progress from its scrolling helper (container or window scrolling) via a reportProgress no-op fallback if the callback is absent, ensuring final progress is reported when scrolling completes.

Expose an in-page progress callback and hook it up to a CLI progress bar while processing pages. ScribdDownloader now starts a progress bar, exposes __onScrollProgress__ to the page, updates the bar during evaluation, and stops it when done. PuppeteerSg gains a protocolTimeout option and emits progress from its scrolling helper (container or window scrolling) via a reportProgress no-op fallback if the callback is absent, ensuring final progress is reported when scrolling completes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant