Ask Your Question
2

What are some ways to increase the speed of the Chromium loading process while using puppeteer and bypassing the proxy check?

asked 2023-06-12 14:11:15 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-12 14:26:02 +0000

huitzilopochtli gravatar image

Here are a few ways to potentially increase the speed of the Chromium loading process while using Puppeteer and bypassing the proxy check:

  1. Disable unnecessary features: By disabling features that are not required for your use case, you can improve the performance of Chromium. You can use the --disable-extensions flag to disable all extensions, and the --disable-background-networking flag to disable background networking.

  2. Use a headless browser: Using a headless browser can significantly reduce the load time of Chromium. You can use the headless: true option in the Puppeteer configuration to instruct the browser to run in headless mode.

  3. Disable image loading: You can disable the loading of images in Chromium by using the --blink-settings=imagesEnabled=false flag. This can improve the performance, especially on slow network connections.

  4. Use a CDN for dependencies: If your application has dependencies that are loaded over the network, you can improve their load time by using a CDN.

  5. Use a faster network connection: If possible, you can connect to a faster network connection to speed up the loading of Chromium and other resources.

Bypassing the proxy check can be done by setting the proxy configuration to use a direct connection. Here's an example:

const browser = await puppeteer.launch({
  args: [
    '--no-sandbox',
    '--disable-setuid-sandbox',
    '--proxy-server="direct://"',
    '--proxy-bypass-list=*'
  ]
})

This will instruct Chromium to bypass the proxy and use a direct connection.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-12 14:11:15 +0000

Seen: 8 times

Last updated: Jun 12 '23