Login Session
No credit card required
Login Session
No credit card required
Get localStorage, sessionStorage and cookies from logins for usage in other actors.
You can access the Login Session programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1echo '{
2 "userAgent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36",
3 "maxRequestRetries": 0,
4 "sessionConfig": {
5 "storageName": "login-sessions",
6 "maxAgeSecs": 3600,
7 "maxUsageCount": 100,
8 "maxPoolSize": 100
9 },
10 "steps": [
11 {
12 "username": {
13 "selector": "input#email"
14 },
15 "password": {
16 "selector": "input#pass"
17 },
18 "submit": {
19 "selector": "input[type=\\"submit\\"]"
20 },
21 "failed": {
22 "selector": "[role=\\"alert\\"]"
23 },
24 "waitForMillis": 5000
25 }
26 ],
27 "cookieDomains": [],
28 "gotoTimeout": 30,
29 "proxyConfiguration": {
30 "useApifyProxy": true
31 },
32 "extraUrlPatterns": []
33}' |
34apify call pocesar/login-session --silent --output-dataset
Login Session API through CLI
The Apify CLI is the official tool that allows you to use Login Session locally, providing convenience functions and automatic retries on errors.
Install the Apify CLI
1npm i -g apify-cli
2apify login
Other API clients include:
Actor Metrics
6 monthly users
-
6 stars
20% runs succeeded
Created in Feb 2020
Modified 4 years ago