News for hackers. Stuff that matters.
Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by yen223 on Thursday April 02, 2020 @11:27PM (#22766084)
Tip: When inspecting an element in the devtools, you can right-click the element and select Copy > CSS Selector (in Firefox) or Copy > Copy selector (in Chrome) to grab the selector to that element.
Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by 0x414c49 on Friday April 03, 2020 @06:46AM (#22767911)
Thank you. I think I should add it to the article!
Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by SenHeng on Friday April 03, 2020 @09:22AM (#22768869)
I was introduced to Autify[0] today by our CTO. I believe Puppeteer and everything else similar will be obsolete soon.

[0]: http://autify.com/

Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by tW4r on Friday April 03, 2020 @11:43AM (#22770371)
Does anybody have a solution for solving recaptchas yourself while using puppeteer?

I have some infrequent scraping tasks for personal that hit a recaptcha at most once an hour, and are not time sensitive and can be retried later.

I would really love to find a way, that when the scraper hits a recaptcha, I get somehow notified and can solve it by hand (remotely).

However, the only solutions I’ve found up to date were paid recaptcha solvers

Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by lowdose on Friday April 03, 2020 @05:10PM (#22773985)
The original Puppeteer team switched to Microsoft a half year ago. You can probably find it on Microsofts GitHub and filter the repo's on Typescript.
Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by steelcm on Friday April 03, 2020 @10:58AM (#22769828)
Other than testing, it would be interesting to hear about some other usages.
Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by vpedrosa on Thursday April 02, 2020 @06:54PM (#22764713)
Then you met cypress.io
Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by tracker1 on Thursday April 02, 2020 @07:59PM (#22765115)
Browser automation isn't always strictly for testing... sometimes you need to perform a couple actions, to do a little scraping in order to facilitate an integration between two systems you don't control.

I really like puppeteer because it's generally much faster and more responsive than selenium and other alternatives I've used. Also, it's crazy easy to pass an async function, and it will serialize and run it on the client browser and return the result to you in your automation script.

If you're familiar with JS, it's so much closer to second nature in terms of the types of control you can acheive.

Re:Puppeteer Or: How I Learned to Stop Worrying and Love the... by egfx on Thursday April 02, 2020 @09:28PM (#22765585)
>Browser automation isn't always strictly for testing...

Yes. For example you can automatically create gif animations using puppeteer... see https://gif.com.ai