Prompt
What should I use to extract data from login-protected pages?
Latest observation
Oct 23, 2026
OpenAI APIWeb search: off
For login-protected pages, the right tool depends on how the site loads the data:
Best options
- Scrapy + session handling: Good if the site is mostly server-rendered and you can log in with cookies or form submission.
- Playwright: Best general choice for modern sites, especially if JavaScript renders the content after login.
- Selenium: Also works for browser automation, but Playwright is usually faster and more reliable today.
- Requests/HTTP client + cookies/tokens: Best if you can inspect the network and call the underlying API directly.
Practical recommendation
- If the page is static after login: use Python
requestswith a maintained session. - If the page is JavaScript-heavy or uses dynamic UI: use Playwright.
- If you need large-scale crawling: use Scrapy, possibly combined with Playwright for login/pages that require JS.
Important note
Make sure you have permission to access and scrape the site, and follow its terms of service and robots/access rules.
If you want, I can suggest the best tool for your specific site structure or show a basic login + data extraction example.