Is there any JS bundle of SingleFile? #181
-
|
I'm doing some archival. Is there any js bundle for SingleFile? I want the same engine that single-file-cli is using but want to run it in puppeteer context. What should be the ideal way to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
You can get the script
single-file-cli/lib/cdp-client.js Lines 354 to 357 in bcd62d3 single-file-cli/lib/single-file-script.js Lines 105 to 107 in bcd62d3 single-file-cli/lib/single-file-script.js Line 26 in bcd62d3 Then, you have to call
single-file-cli/lib/single-file-script.js Lines 141 to 152 in bcd62d3
single-file-cli/lib/cdp-client.js Lines 513 to 528 in bcd62d3 You may need to disable web security, or need to pass a
single-file-cli/lib/single-file-script.js Lines 46 to 87 in bcd62d3
single-file-cli/lib/cdp-client.js Lines 540 to 545 in bcd62d3 single-file-cli/lib/cdp-client.js Lines 606 to 627 in bcd62d3 Finally, you can also have a look at: |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. Seems like with puppeteer we can skip the complex cdp-client. You can share this in the wiki for using anyone wanting to use singleFile with puppeteer. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! I've created a new page here: https://github.com/gildas-lormeau/SingleFile/wiki/Executing-within-Puppeteer-(headless-browser). Regarding the |
Beta Was this translation helpful? Give feedback.
Thanks. Seems like with puppeteer we can skip the complex cdp-client.