# Puppeteer

Puppeteer is a popular tool for web scraping and parsing.

Below you can find an example of the set-up process

* In Puppeteer, under the ‘proxy-server’, update the proxy server IP and port number (i.e. <https://proxy.goproxies.com:1080>).
* Replace the 'USERNAME' and 'PASSWORD' with your credentials

Here's how a full example of a code should look like:

```
const puppeteer = require('puppeteer');
(async () => {
  const browser = await puppeteer.launch({
    headless: false,
    args: ['--proxy-server=https://proxy.goproxies.com:1080']  
});
  const page = await browser.newPage();
    await page.authenticate({
        username: 'USERNAME',
        password: 'PASSWORD'
    });
    await page.goto('https://ip.goproxies.com');
})();
```

And that's it! You've successfully integrated GoProxies on Puppeteer.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.goproxies.com/proxies/integrations/browsers/puppeteer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
