puppeteer jquery 1

puppeteer jquery

...
await page.addScriptTag({url: 'https://code.jquery.com/jquery-3.2.1.min.js'})
...

Here is what the above code is Doing:
1. We’re importing the Puppeteer library.
2. We’re creating a new browser instance.
3. We’re creating a new page instance.
4. We’re telling Puppeteer to go to the URL we want to scrape.
5. We’re telling Puppeteer to wait for the page to load.
6. We’re telling Puppeteer to evaluate the page and return the title.
7. We’re telling Puppeteer to close the browser.

Similar Posts