Prompt
I'm building an internal tool to log into websites and pull reports, what should I use?
Latest observation
Oct 26, 2026
OpenAI APIWeb search: off
For an internal “log in and pull reports” tool, the best choice depends on whether the site has an API or only a web UI.
Best option: use the site’s API if available
If the website offers:
- REST/GraphQL API
- OAuth / service accounts
- export endpoints
use that instead of browser automation. It’s more reliable, faster, and easier to maintain.
If there’s no API: use browser automation
Use a browser automation tool to:
- open the site
- log in
- navigate to the report
- download/export data
Good options:
- Playwright — my top recommendation
- Selenium — older, widely supported
- Puppeteer — good if you’re mainly in Node.js
Why Playwright
- More modern than Selenium
- Better handling of dynamic sites
- Works with Chromium, Firefox, WebKit
- Good support for file downloads, sessions, and waiting for elements
- Easier to write stable scripts
Recommended stack
If you want a practical internal tool:
- Playwright for browser automation
- Python or Node.js for the app logic
- SQLite/Postgres for storing report metadata and logs
- Cron / task scheduler / worker queue for recurring runs
- Secrets manager for credentials
Important considerations
- MFA/2FA: if the login uses MFA, try to use an API token or service account; otherwise you may need a semi-manual step
- CAPTCHA: automation may fail if the site uses it
- Terms of service: make sure your internal use is allowed
- Stability: UI-based automation can break when the site changes
- Security: never hardcode passwords; use vault/secret storage
Simple rule of thumb
- API exists → use API
- No API, simple UI → Playwright
- Legacy/simple needs → Selenium if your team already knows it
If you want, I can recommend a specific stack based on your language preference, number of sites, and whether the login includes MFA.