Browser Automation Bot from JavaScript to Python

tidderautomate

Junior Member
Joined
Dec 4, 2024
Messages
128
Reaction score
59
Hi BHW,

I'm a bot automation developer. I currently use Electron for the UI, utilizing HTML and CSS, and Node.js with JavaScript for bot automation with Playwright/Puppeteer.

Now, I want to switch to Python for more robust scripting and access to a wider range of libraries.

My question is: What framework should I use for the desktop GUI if I switch to Python, and what is the equivalent of Node.js that can be embedded into a desktop app like Electron?
 
If you're switching to Python for your desktop app, there are a few great GUI frameworks to consider. Tkinter is simple and comes pre-installed, but if you're looking for something more powerful and modern, PyQt or PySide (Qt bindings) are excellent choices with a lot of features. wxPython offers a native feel across platforms, while Kivy is great for touch and mobile apps. For high-performance, graphical applications, Dear PyGui is a good option.
 
Tkinter can help with built in Python GUI library, excellent for simple, lightweight, and portable applications
 
Tkinter can help with built in Python GUI library, excellent for simple, lightweight, and portable applications
Thank you will try this, we are migrating from node to python, faster and more libraries I believe
 
You don't have to learn GUI libraries in Python. If you have experience with Electron, you can write the GUI in Electron and the logic in Python. If you still want to learn GUI in Python, PyQt5 - PyQt6 are good libraries, but a little difficult to learn. Tkinter is not a bad library if you need to make a simple interface.
 
You don't have to learn GUI libraries in Python. If you have experience with Electron, you can write the GUI in Electron and the logic in Python. If you still want to learn GUI in Python, PyQt5 - PyQt6 are good libraries, but a little difficult to learn. Tkinter is not a bad library if you need to make a simple interface.
Tkinter is pretty easy to set up too
 
playwright > selenium if stealth matters. less detectable and faster for modern sites
 
For your case python EEL is most suitable UI framework for you. You can say EEL is the Electron for python. Eel works similar like electron you can use HTML css js to design. And most probably you will be able to port the same electron code for python EEL. Consider checking it once I am sure it will be most suitable choice for you. And you can reach me via DM if you need help for anything else
 
Selenium will be detected
I will still choose it compared to Puppeteer.

Most people do not seem to realize that Puppeteer is now owned by Google. And of course, Google has embedded so many "Bot Signatures" into the Chromium that comes by default with Puppeteer.

So, basically, regardless of how many stealth Node Modules are installed in your project, as long as you use the default Chromium attached to Puppeteer, your bot could as well hold a NEON sign with Loud Speakers saying "I AM A BOT"
 
Hi BHW,

I'm a bot automation developer. I currently use Electron for the UI, utilizing HTML and CSS, and Node.js with JavaScript for bot automation with Playwright/Puppeteer.

Now, I want to switch to Python for more robust scripting and access to a wider range of libraries.

My question is: What framework should I use for the desktop GUI if I switch to Python, and what is the equivalent of Node.js that can be embedded into a desktop app like Electron?
For Python desktop GUI, PyQt or Tkinter are popular choices, with PyQt offering more advanced features.
For embedding Python scripting like Node.js in Electron, use PyInstaller or PyOxidizer to package Python scripts into a standalone app with GUI.
 
Back
Top