Authentication Cookies via API
Hello everyone! ๐
I'm developing an application and exploring options to automate access to websites that require login, primarily news sites with paywalls. I'm looking for a hosted solution that enables me to:
Open a browser session via API
Execute code (e.g., Playwright-compatible) to automate the login process
Retrieve the resulting authentication cookies - (This is the important part).
The goal is to reuse these cookies in another service that scrapes the content.
Ideally, I'd like to avoid setting up and maintaining a Node.js or Python-based browser automation service myself.
Does anyone know of products or services that support this kind of workflow? Or anything similar?
1 Reply
I believe I can use it:
https://apify.com/pragmaticcoders/session-login-extractor
Can I a schedule it and get the result of it by API?
Like using it?
https://api.apify.com/v2/actor-tasks/xxx~session-login-extractor-task/runs/last?token=xxx&status=SUCCEEDED
Apify
Session/Login Extractor ยท Apify
Automates login flows and extracts session data.
Supports MFA with TOTP code.
You can use this actor if you need to access website with authentication.