Puppeteer vs Selenium

LADA

Junior Member
Joined
May 28, 2024
Messages
154
Reaction score
48
For automation which one is better?

Why?

Would like to start to learn one of them, don’t have any programming language skills , have been coding with ai only using python
 
You need to specify you task. What king of automation?
If you need just web browser automation - better start with selenium.
It's an old, stable and well-documented instrument.
"Codind with AI" sounds like a way to hell for future generations )
 
You need to specify you task. What king of automation?
If you need just web browser automation - better start with selenium.
It's an old, stable and well-documented instrument.
"Codind with AI" sounds like a way to hell for future generations )
Let’s say account registration. I have actually coded some hard tasks via gpt with very little coding skills lol. However , as I go through process , I understand it is path to hell as you said above ) So yeah, definitely need to pick one, python is easier, however JavaScript seems more advanced and it seems to me it can handle some complex tasks better, and for webdev JavaScript seems way to go.

Most likely picking that one. What do you think ?
 
Last edited:
Python is ok. I can advise you a book for begginers:

Python Programming for the Absolute Beginner, 3rd Edition 3rd Edition​

by Michael Dawson
 
most likely you will get what you need using selenium , selenium stealth , selenium base , selenium wire or any of the selenium variations out there
 
Let’s say account registration. I have actually coded some hard tasks via gpt with very little coding skills lol. However , as I go through process , I understand it is path to hell as you said above ) So yeah, definitely need to pick one, python is easier, however JavaScript seems more advanced and it seems to me it can handle some complex tasks better, and for webdev JavaScript seems way to go.

Most likely picking that one. What do you think ?
JavaScript is a WEIRD language. But it's also not hard to combine JS and Python so if you ever need to like, add a browser front end to your applications.
I think sticking with Python is easier. Can also compile C extensions to make it more efficient. The multiprocessing library is also pretty stinking nice whenever you want to boost the speed of your application (neither language is truly multi threaded... Python you get the option of C extensions though, which can disable the GIL if that's ever needed)

As far as the puppeteer vs selenium... I choose Playwright. Not sure about being "undetectable" with it or whatever but it's easy to use and I've had no problems with it.
 
JavaScript is a WEIRD language. But it's also not hard to combine JS and Python so if you ever need to like, add a browser front end to your applications.
I think sticking with Python is easier. Can also compile C extensions to make it more efficient. The multiprocessing library is also pretty stinking nice whenever you want to boost the speed of your application (neither language is truly multi threaded... Python you get the option of C extensions though, which can disable the GIL if that's ever needed)

As far as the puppeteer vs selenium... I choose Playwright. Not sure about being "undetectable" with it or whatever but it's easy to use and I've had no problems with it.

Js is weird because it's still messy. I don't know how old you are but 25 years ago js was associated with some dummy web gadgets like butterflies following your cursor or some calendar. It was developing by Netscape and other big companies (yes Google, Facebook etc. sometimes do something pro bono)
But js is still not fully standardized for all browsers.

When it comes to making bots python is easier but js is necessary if you want to use browser fingerprints. How do you want to cover webrtc leak with python? You can set proxy for the whole os but it's good when one bot is running not when you want to use dozens or even more bots simultaneously.

Coding with ai is not real coding... :D I also use it but I understand what I get and I can correct code.
 
Js is weird because it's still messy. I don't know how old you are but 25 years ago js was associated with some dummy web gadgets like butterflies following your cursor or some calendar. It was developing by Netscape and other big companies (yes Google, Facebook etc. sometimes do something pro bono)
But js is still not fully standardized for all browsers.

When it comes to making bots python is easier but js is necessary if you want to use browser fingerprints. How do you want to cover webrtc leak with python? You can set proxy for the whole os but it's good when one bot is running not when you want to use dozens or even more bots simultaneously.

Coding with ai is not real coding... :D I also use it but I understand what I get and I can correct code.
Great answer, but what if I’m working with selectors?
 
For automation which one is better?

Why?

Would like to start to learn one of them, don’t have any programming language skills , have been coding with ai only using python
None is better than the other. Both expose APIs for controlling the browser. I was going to say puppeteer is specific to node and selenium is specific to java and python, but what you know! Selenium does seem to have a plugin for node.js as well.

I personally prefer using puppeteer just because I have more experience in it than selenium. Just use the one you like.
 
None is better than the other. Both expose APIs for controlling the browser. I was going to say puppeteer is specific to node and selenium is specific to java and python, but what you know! Selenium does seem to have a plugin for node.js as well.

I personally prefer using puppeteer just because I have more experience in it than selenium. Just use the one you like.
I’m sorry what do you mean that they both expose ? Can’t we make undetected automation with puppeteer for example?
 
I’m sorry what do you mean that they both expose ? Can’t we make undetected automation with puppeteer for example?
No lol I didn’t mean that. By expose I mean that they work as an interface that talks between your favourite language and a browser. This is called exposing an “API” in computer science. How you use the api makes it or breaks it when it comes to botting.
 
go with puppeteer, it has added stealth configuration you can bypass some cloudflare
I am 99.99% sure selenium supports the same flags, though. Just that, the code for doing the same might vary.
 
Back
Top