adspower-browser 2.0.0-beta.1 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +29 -29
- package/cli/index.js +1105 -466
- package/cwd/lib/main.min.js +2 -2
- package/package.json +2 -2
package/README.MD
CHANGED
|
@@ -50,15 +50,15 @@ ads start
|
|
|
50
50
|
**Two forms for `<arg>`:**
|
|
51
51
|
|
|
52
52
|
1. **Single value (shorthand)** — for profile-related commands, pass one profile ID or number:
|
|
53
|
-
- `ads open-browser <
|
|
54
|
-
- `ads close-browser <
|
|
55
|
-
- `ads get-profile-cookies <
|
|
56
|
-
- `ads get-browser-active <
|
|
57
|
-
- `ads get-profile-ua <
|
|
58
|
-
- `ads new-fingerprint <
|
|
53
|
+
- `ads open-browser <profile_id>`
|
|
54
|
+
- `ads close-browser <profile_id>`
|
|
55
|
+
- `ads get-profile-cookies <profile_id>`
|
|
56
|
+
- `ads get-browser-active <profile_id>`
|
|
57
|
+
- `ads get-profile-ua <profile_id>` (single ID; a numeric token is treated as `profile_no`)
|
|
58
|
+
- `ads new-fingerprint <profile_id>` (single ID; a numeric token is treated as `profile_no`)
|
|
59
59
|
|
|
60
60
|
2. **JSON string** — full parameters for any command (see Command Reference below):
|
|
61
|
-
- `ads open-browser '{"
|
|
61
|
+
- `ads open-browser '{"profile_id":"abc123","launch_args":"..."}'`
|
|
62
62
|
- Commands with no params: omit `<arg>` or use `'{}'`.
|
|
63
63
|
|
|
64
64
|
## Essential Commands With CLI
|
|
@@ -77,56 +77,56 @@ ads status # Get the status of the adspower runtime
|
|
|
77
77
|
### Browser profile – open/close
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
ads open-browser <
|
|
81
|
-
ads close-browser <
|
|
80
|
+
ads open-browser <profile_id> # Or JSON: profile_id, profile_no?, ip_tab?, launch_args?, headless?, last_opened_tabs?, proxy_detection?, password_filling?, password_saving?, cdp_mask?, delete_cache?, device_scale?
|
|
81
|
+
ads close-browser <profile_id> # Or JSON: profile_id? | profile_no? (one required)
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
### Browser profile – create/update/delete/list
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
ads create-browser '{"
|
|
88
|
-
ads update-browser '{"
|
|
89
|
-
ads delete-browser '{"
|
|
90
|
-
ads get-browser-list '{}' # Or
|
|
87
|
+
ads create-browser '{"group_id":"0","user_proxy_config":{"proxy_soft":"no_proxy"},...}' # group_id + account field required; proxy optional (defaults to no_proxy; proxyid takes priority over user_proxy_config when both given)
|
|
88
|
+
ads update-browser '{"profile_id":"...",...}' # profile_id required
|
|
89
|
+
ads delete-browser '{"profile_id":["..."]}' # profile_id required
|
|
90
|
+
ads get-browser-list '{}' # Or group_id?, limit?, page?, profile_id[]?, profile_no[]?, sort_type?, sort_order?, tag_ids?, tags_filter?, name?, name_filter?
|
|
91
91
|
ads get-opened-browser # No params
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
### Browser profile – move/cookies/UA/fingerprint/cache/share/active
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
|
-
ads move-browser '{"
|
|
98
|
-
ads get-profile-cookies <
|
|
99
|
-
ads get-profile-ua <
|
|
97
|
+
ads move-browser '{"group_id":"1","user_ids":["..."]}' # group_id + user_ids required
|
|
98
|
+
ads get-profile-cookies <profile_id> # Or JSON: profile_id? | profile_no?
|
|
99
|
+
ads get-profile-ua <profile_id> # Or JSON: profile_id[]? | profile_no[]? (up to 10); numeric shorthand maps to profile_no[]
|
|
100
100
|
ads close-all-profiles # No params
|
|
101
|
-
ads new-fingerprint <
|
|
102
|
-
ads delete-cache-v2 '{"
|
|
103
|
-
ads share-profile '{"
|
|
104
|
-
ads get-browser-active <
|
|
105
|
-
ads get-cloud-active '{"
|
|
101
|
+
ads new-fingerprint <profile_id> # Or JSON: profile_id[]? | profile_no[]? (up to 10); numeric shorthand maps to profile_no[]
|
|
102
|
+
ads delete-cache-v2 '{"profile_id":["..."],"type":["cookie","history"]}' # type: local_storage|indexeddb|extension_cache|cookie|history|image_file
|
|
103
|
+
ads share-profile '{"profile_id":["..."],"receiver":"email@example.com"}' # receiver required; share_type?, content?
|
|
104
|
+
ads get-browser-active <profile_id> # Or JSON: profile_id? | profile_no?
|
|
105
|
+
ads get-cloud-active '{"user_ids":"id1,id2"}' # user_ids comma-separated, max 100
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
### Group
|
|
109
109
|
|
|
110
110
|
```bash
|
|
111
|
-
ads create-group '{"
|
|
112
|
-
ads update-group '{"
|
|
113
|
-
ads get-group-list '{}' #
|
|
111
|
+
ads create-group '{"group_name":"My Group","remark":"..."}' # group_name required
|
|
112
|
+
ads update-group '{"group_id":"1","group_name":"New Name"}' # group_id + group_name required; remark? (null to clear)
|
|
113
|
+
ads get-group-list '{}' # group_name?, page_size?, page?
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
### Application (categories)
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
119
|
ads check-status # No params – API availability
|
|
120
|
-
ads get-application-list '{
|
|
120
|
+
ads get-application-list '{"category_id":"123","page":1,"limit":20}'
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
### Proxy
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
ads create-proxy '
|
|
127
|
-
ads update-proxy '{"
|
|
128
|
-
ads get-proxy-list '{}' # limit?, page?,
|
|
129
|
-
ads delete-proxy '{"
|
|
126
|
+
ads create-proxy '[{"type":"http","host":"127.0.0.1","port":"8080"}]' # top-level array; type, host, port required per item
|
|
127
|
+
ads update-proxy '{"proxy_id":"proxy-1","proxy_url":"https://refresh.example.com"}'
|
|
128
|
+
ads get-proxy-list '{}' # limit?, page?, proxy_id[]?
|
|
129
|
+
ads delete-proxy '{"proxy_id":["..."]}' # proxy_id required, max 100
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
### Tag
|