@olib-ai/owl-browser-sdk 2.0.0 → 2.0.1
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 +1 -1
- package/openapi.json +90 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -346,6 +346,6 @@ MIT - See LICENSE file for details.
|
|
|
346
346
|
## Links
|
|
347
347
|
|
|
348
348
|
- **Website**: https://www.owlbrowser.net
|
|
349
|
-
- **Documentation**: https://
|
|
349
|
+
- **Documentation**: https://www.owlbrowser.net/docs
|
|
350
350
|
- **GitHub**: https://github.com/Olib-AI/olib-browser
|
|
351
351
|
- **Support**: support@olib.ai
|
package/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Owl Browser API",
|
|
5
5
|
"description": "REST API for browser automation with anti-detection capabilities",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.7"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -25,6 +25,85 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"paths": {
|
|
28
|
+
"/go": {
|
|
29
|
+
"get": {
|
|
30
|
+
"summary": "Browser Go",
|
|
31
|
+
"description": "One-shot browser navigation tool. Creates a new context, navigates to the URL, waits for page load, extracts the HTML, and closes the context. Optimized for single-page scraping or rendering tasks. Supports both GET and POST requests.",
|
|
32
|
+
"tags": [
|
|
33
|
+
"Navigation"
|
|
34
|
+
],
|
|
35
|
+
"parameters": [
|
|
36
|
+
{
|
|
37
|
+
"name": "url",
|
|
38
|
+
"in": "query",
|
|
39
|
+
"required": true,
|
|
40
|
+
"schema": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"description": "The full URL to navigate to, including protocol (e.g., 'https://example.com'). Supports http://, https://, file://, and data: URLs"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "wait_until",
|
|
47
|
+
"in": "query",
|
|
48
|
+
"required": false,
|
|
49
|
+
"schema": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": [
|
|
52
|
+
"",
|
|
53
|
+
"load",
|
|
54
|
+
"domcontentloaded",
|
|
55
|
+
"networkidle",
|
|
56
|
+
"fullscroll"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"description": "When to consider navigation complete: '' (return immediately), 'load' (wait for load event), 'domcontentloaded' (wait for DOMContentLoaded), 'networkidle' (wait for network to be idle, default), 'fullscroll' (scroll full page to trigger lazy loading, then scroll back to top)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "timeout",
|
|
63
|
+
"in": "query",
|
|
64
|
+
"required": false,
|
|
65
|
+
"schema": {
|
|
66
|
+
"type": "integer"
|
|
67
|
+
},
|
|
68
|
+
"description": "Maximum time to wait for navigation in milliseconds. Default: 30000 (30 seconds)"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "os",
|
|
72
|
+
"in": "query",
|
|
73
|
+
"required": false,
|
|
74
|
+
"schema": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"windows",
|
|
78
|
+
"macos",
|
|
79
|
+
"linux"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"description": "Filter profiles by operating system. Options: 'windows', 'macos', 'linux'"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "use_tor",
|
|
86
|
+
"in": "query",
|
|
87
|
+
"required": false,
|
|
88
|
+
"schema": {
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"description": "Use TOR proxy for anonymous browsing. Each request gets a unique exit IP. Default: false"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"responses": {
|
|
95
|
+
"200": {
|
|
96
|
+
"description": "Successful response"
|
|
97
|
+
},
|
|
98
|
+
"400": {
|
|
99
|
+
"description": "Bad request"
|
|
100
|
+
},
|
|
101
|
+
"401": {
|
|
102
|
+
"description": "Unauthorized"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
28
107
|
"/api/execute/browser_create_context": {
|
|
29
108
|
"post": {
|
|
30
109
|
"summary": "Browser Create Context",
|
|
@@ -1882,7 +1961,7 @@
|
|
|
1882
1961
|
"/api/execute/browser_extract_text": {
|
|
1883
1962
|
"post": {
|
|
1884
1963
|
"summary": "Browser Extract Text",
|
|
1885
|
-
"description": "Extract visible text content from the page or a specific element. Returns plain text stripped of HTML tags. Optionally target a specific element using CSS selector or natural language description. Useful for reading page content, extracting article text,
|
|
1964
|
+
"description": "Extract visible text content from the page or a specific element. Returns plain text stripped of HTML tags. Optionally target a specific element using CSS selector or natural language description. Optionally apply a regex pattern to filter/extract specific content from the text. Useful for reading page content, extracting article text, getting form values, or extracting specific data like numbers, emails, or prices.",
|
|
1886
1965
|
"tags": [
|
|
1887
1966
|
"General"
|
|
1888
1967
|
],
|
|
@@ -1900,6 +1979,14 @@
|
|
|
1900
1979
|
"selector": {
|
|
1901
1980
|
"type": "string",
|
|
1902
1981
|
"description": "Optional CSS selector or natural language description to extract text from a specific element. If omitted, extracts all visible text from the entire page. Examples: '#main-content', 'article', 'the product description'"
|
|
1982
|
+
},
|
|
1983
|
+
"regex": {
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"description": "Optional regex pattern to apply to the extracted text. When provided, only content matching the regex will be returned. If both selector and regex are provided, the selector extracts text first, then regex filters the result. Examples: '\\\\d+' to extract numbers, '(?<=Price: )\\\\$[\\\\d.]+' to extract prices, '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Z|a-z]{2,}' for emails"
|
|
1986
|
+
},
|
|
1987
|
+
"regex_group": {
|
|
1988
|
+
"type": "string",
|
|
1989
|
+
"description": "Which capture group to return from the regex match. 0 returns the full match (default), 1 returns the first capture group, 2 returns the second, etc. Example: with regex 'FP ID:\\\\s*(\\\\S+)' and regex_group=1, only the ID value is returned."
|
|
1903
1990
|
}
|
|
1904
1991
|
},
|
|
1905
1992
|
"required": [
|
|
@@ -6968,7 +7055,7 @@
|
|
|
6968
7055
|
"/api/execute/server_restart_browser": {
|
|
6969
7056
|
"post": {
|
|
6970
7057
|
"summary": "Server Restart Browser",
|
|
6971
|
-
"description": "Restart the browser process. This
|
|
7058
|
+
"description": "Restart the HTTP server and browser via s6-overlay process supervisor. This performs a clean restart of the entire service, ensuring both the HTTP server and browser processes are fully restarted. Useful for recovering from browser hangs, memory issues, or applying configuration changes. All active browser contexts will be terminated. The restart is non-blocking - the response is sent before the restart occurs (~1 second delay). In Docker containers, uses s6-svc for graceful restart. Falls back to browser-only restart in non-Docker environments.",
|
|
6972
7059
|
"tags": [
|
|
6973
7060
|
"General"
|
|
6974
7061
|
],
|
package/package.json
CHANGED