HNHacker News
TopNewBestAskShowJobs

mintzworld

20 karma · joined April 30, 2016

https://github.com/mdmintz Twitter: @mintzworld
submissionscomments
mintzworld··on Stealthy Playwright Mode: Bypass CAPTCHAs and Bot-Detection [video]
Oh, the irony of using SeleniumBase to make Playwright stealthy!
mintzworld··on SeleniumBase: Python APIs for web automation and bypassing bot-detection
Even a single script that performs actions too quickly on a website can trigger anti-bot measures, even if the bot isn't detected directly.
mintzworld··on SeleniumBase: Python APIs for web automation and bypassing bot-detection
Why pay to solve CAPTCHAs when SeleniumBase can bypass them for free? SeleniumBase can also "solve" CAPTCHAs (such as Cloudflare via click).
mintzworld··on SeleniumBase: Python APIs for web automation and bypassing bot-detection
On the topic of scraping grocery sites, here's an example of bypassing bot-detection on Albertsons: https://github.com/seleniumbase/SeleniumBase/blob/master/exa... (A demo of that is in https://www.youtube.com/watch?v=Mr90iQmNsKM)
mintzworld··on SeleniumBase: Python APIs for web automation and bypassing bot-detection
PyAutoGUI is the optimal tool for clicking things inside of closed shadow-root elements, which are hidden to JavaScript. Can use CDP for clicking other elements.
mintzworld··on SeleniumBase: Python APIs for web automation and bypassing bot-detection
The "CDP Mode" used for bypassing CAPTCHAs and bot-detection has it's own ReadMe within SeleniumBase: https://github.com/seleniumbase/SeleniumBase/blob/master/exa... And there's a recent YouTube video with live demos: https://www.youtube.com/watch?v=Mr90iQmNsKM
mintzworld··on SeleniumBase: Python APIs for web automation and bypassing bot-detection
According to live demos seen in https://www.youtube.com/watch?v=Mr90iQmNsKM, it'll bypass Cloudflare, Akamai, Shape Security, DataDome, Incapsula, Kasada, and PerimeterX.
mintzworld··on SeleniumBase: Python APIs for web automation and bypassing bot-detection
SeleniumBase is free, open-source, can bypass CAPTCHAs with a few lines of code, and it works from the free tier of GitHub Actions.
mintzworld··on The virtual device farm for rendering websites on multiple devices
"Service workers can only be used over HTTPS, or on localhost for development" - That's a known Gatsby issue: https://github.com/gatsbyjs/gatsby/issues/10369
mintzworld··on The virtual device farm for rendering websites on multiple devices
It's possible to be testing a live version of your own site when you can't easily change the Same-Origin policy for just yourself.
mintzworld··on The virtual device farm for rendering websites on multiple devices
Some websites have a Same-Origin policy that won't allow rendering in an iframe. The CORS proxy lets you bypass the restriction.
mintzworld··on The virtual device farm for rendering websites on multiple devices
There are a few websites that will detect unusual behavior from browsers living inside of browsers. Although it does seem to work for most websites.
mintzworld··on Using Python to load JavaScript packages into any website via browser automation
Selenium to the rescue!
mintzworld··on Using Python and Selenium for automated visual regression testing
SeleniumBase (which wraps Selenium) adds reliability by improving existing methods so that the browser waits for page elements to fully load before interacting with them. It might be worth trying some of the examples from the SeleniumBase GitHub page to see if you still feel that way.
mintzworld··on Using Python and Selenium for automated visual regression testing
SeleniumBase methods wait for page elements to fully load before interacting with them, which brings test reliability. There's also built-in mobile testing and cross-browser testing features included: https://github.com/seleniumbase/SeleniumBase/blob/master/hel...