puppeteer-extra | 💯 Teach puppeteer new tricks through plugins | Automation library
kandi X-RAY | puppeteer-extra Summary
kandi X-RAY | puppeteer-extra Summary
Teach puppeteer new tricks through plugins.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Return a promise with an event handler .
- recursive recursively
- Test function
- patch eval eval
- Creates a new object from iterable .
- Convert a number to a string .
puppeteer-extra Key Features
puppeteer-extra Examples and Code Snippets
// puppeteer-extra is a drop-in replacement for puppeteer,
// it augments the installed puppeteer with plugin functionality
const puppeteer = require('puppeteer-extra');
// require proxy plugin
const pluginProxy = require('puppeteer-extra-plugin-prox
import { pageExtend, PageEx } from 'puppeteer-jquery'
import puppeteer from 'puppeteer-extra';
import StealthPlugin from 'puppeteer-extra-plugin-stealth'
puppeteer.use(StealthPlugin())
const page1 = 'https://recaptcha-demo.appspot.com/recaptcha-v3-r
yarn add puppeteer-extra-plugin-proxy
# - or -
npm install puppeteer-extra-plugin-proxy
yarn add puppeteer puppeteer-extra puppeteer-extra-plugin-proxy
# - or -
npm install puppeteer puppeteer-extra puppeteer-extra-plugin-proxy
import puppeteer from "puppeteer-extra"
const defaultExport: PuppeteerExtra = (() => {
return new PuppeteerExtra(...requireVanillaPuppeteer())
})()
export default defaultExport
// jav
Community Discussions
Trending Discussions on puppeteer-extra
QUESTION
My code below gives the error "TypeError: response.postData is not a function".
...ANSWER
Answered 2022-Mar-26 at 20:02Reading into the Response
type definition for Puppeteer, it looks like you have other methods you can use.
Either await response.json()
or (await response.buffer()).toString()
QUESTION
how to solve this Error in Puppeteer i try to FillUp form using Puppeteer
...ANSWER
Answered 2022-Mar-23 at 13:17Make sure you await closing the page or browser and that subsequent instances are called synchronously. https://github.com/puppeteer/puppeteer/issues/1947
QUESTION
I am trying to write a purchasing bot for supreme website as a way to teach myself javascript and pupetteer. I am having trouble finding a way to click on the item that contains the text that is given as an argument in the function. Here is what I am trying
'''
...ANSWER
Answered 2022-Mar-01 at 01:12page.$x
should be a function I think so something else is going wrong there.
You can also do something like:
QUESTION
I'm trying to scrape a YouTube playlists URL using Node / puppeteer. It was working, but now I'm getting ERR_TOO_MANY_REDIRECTS error. I can still access the page using chrome from my desktop.
I've tried using the chromium browser and chrome browsers. I've also tried using the puppeteer-extra stealth plugin and the random-useragent.
This is how my code stand at the moment:
...ANSWER
Answered 2022-Feb-16 at 08:29If all you need is playlist IDs for a given channel, it's possible to query a feed at:
QUESTION
I have a simple script that use Puppeteer and Tor client to navigate the web with differents IPs:
...ANSWER
Answered 2021-Dec-14 at 13:51I think the Error isnt about restarting its about evaluation of the website?!
Edit wow thanks for so many dislikes next time you get no answer with your best designed and if you could read:
QUESTION
So I'm trying to run my code but it shows this error message:-
...ANSWER
Answered 2021-Sep-07 at 12:31Add a ;
before the (async
, otherwise you'd be writing a function call on the expression from the previous line. I'd suggest using a linter so you get a warning about that in the future (see https://eslint.org/docs/rules/semi and https://eslint.org/docs/rules/no-unexpected-multiline).
To illustrate the issue with a simplified piece of code:
QUESTION
I am attempting to use Puppeteer and puppeteer-extra-plugin-recaptcha through Apify to solve the Recaptcha on a login page.
In time, I will want to do the full login. For now, I am attempting to do the Recaptcha solution, using Google's demo. puppeteer-extra-plugin-recaptcha taps up the 2captcha service via API key to do the solving.
Unfortunately, in my code, the important solveRecaptchas()
throws an error:
ANSWER
Answered 2021-Oct-17 at 11:25This might be an omission from the example you provided, but it seems that you're not calling the addPlugins()
function anywhere and therefore the plugin is not used at all.
QUESTION
Title says it really - i can build locally but it fails to deploy. Has an issue with Timeout - not sure how to force this to work?
Here's my package.json, and the logs afterwards.
I tried adding Timeout by running a yarn install but then it triggered some other dependency issues with node-gyp
Many thanks for any tips!
Package.json
...ANSWER
Answered 2021-Oct-13 at 13:08The problem seems to be missing types, here are two possible fix:
Install
@types/node
as adevDependencies
. This package contains types for NodeJS, including theTimeout
type.Edit your
tsconfig.json
to setskipLibCheck
totrue
:
QUESTION
I'm using Puppeteer for webscraping, with a small NodeJs webapp that I made. This webapp is hosted on Heroku and use jontewks/puppeteer-heroku-buildpack
to works.
The problem I'm facing is that my app do not build anymore because of the Heroku size limit:
...ANSWER
Answered 2021-Oct-07 at 12:43Finally, I end up using Playwright.
With this Buildpack, the build of my app is only 250Mb!
Here's a few steps I've followed:
Install with NPM
playwright-chromium
to only download Chromium.Set
PLAYWRIGHT_BUILDPACK_BROWSERS
env variable tochromium
in Heroku to only install Chromium dependencies.Put this buildpack before Node.js buildpack in Heroku.
With this trick you can use most of the of stuff from
puppeteer-stealth
.If you want, you can block resources like in Puppeteer:
QUESTION
Im trying to access a site with headless chrome using puppeteer on Heroku. My setup works when I try it locally on my machine, but when trying it mounted on Heroku I get something like this:
I understand that puppeteer comes with javascript enabled by default and for what I've read it looks like it has nothing to do with that.
Im using puppeteer-extra-plugin-stealth, random-useragent and viewport randomization but nothing seems to work.
Could it be that puppeteer and/or chrome is adding extra stuff when running locally vs on Heroku?
Here's my setup:
...ANSWER
Answered 2021-Aug-28 at 21:45I managed to fix my issue following Raphael PICCOLO's comment on how IP addresses might get detected. Nothing extra was being added or removed by my machine or Heroku, it was just the IP.
I used a proxy which required proxy-chain in order to avoid getting net::ERR_NO_SUPPORTED_PROXIES
error.
My code ended up something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install puppeteer-extra
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page