For Python web scraping, here's what I'd recommend based on your needs:
For simple static pages:
requests + BeautifulSoup is the go-to combination. It's fast and lightweight, but won't handle JavaScript-rendered content.
For JavaScript-heavy sites (Puppeteer replacement):
- Playwright - This is probably your best bet coming from Puppeteer. It's made by Microsoft and has a very similar API. Supports Chrome, Firefox, and WebKit.
- Selenium - More established but generally slower and more detectable than Playwright.
For making scraping less detectable:
With Playwright:
playwright-stealth - Python port of puppeteer-stealth
- Built-in options like
--disable-blink-features=AutomationControlled
With Selenium:
undetected-chromedriver - Patches Selenium to avoid detection
selenium-stealth - Applies various techniques to make Selenium less detectable
General anti-detection strategies:
- Rotate user agents -
fake-useragent library
- Proxy rotation - Services like Bright Data, Oxylabs, or residential proxies
- Request delays - Random delays between requests
- Browser fingerprinting - Randomize canvas, WebGL, fonts, etc.
Since you mentioned the pages are "pretty simple," I'd suggest starting with requests + BeautifulSoup. If you hit JavaScript-rendered content, then move to Playwright with playwright-stealth. It'll feel most familiar coming from Puppeteer.
Would you like me to show you a basic example with any of these tools?