Skip to content

Commit 67f56a5

Browse files
3.1.3
1 parent 3bf7864 commit 67f56a5

24 files changed

+35
-35
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: 3.1.2
7-
- Package version: 3.1.2
6+
- API version: 3.1.3
7+
- Package version: 3.1.3
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://webscraping.ai](https://webscraping.ai)
1010

@@ -80,9 +80,9 @@ with webscraping_ai.ApiClient(configuration) as api_client:
8080
api_instance = webscraping_ai.AIApi(api_client)
8181
url = 'https://example.com' # str | URL of the target page.
8282
question = 'What is the summary of this page content?' # str | Question or instructions to ask the LLM model about the target page. (optional)
83-
context_limit = 8000 # int | Maximum number of tokens to use as context for the LLM model (4000 by default). (optional) (default to 8000)
83+
context_limit = 4000 # int | Maximum number of tokens to use as context for the LLM model (4000 by default). (optional) (default to 4000)
8484
response_tokens = 100 # int | Maximum number of tokens to return in the LLM model response. The total context size (context_limit) includes the question, the target page content and the response, so this parameter reserves tokens for the response (see also on_context_limit). (optional) (default to 100)
85-
on_context_limit = 'truncate' # str | What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (optional) (default to 'truncate')
85+
on_context_limit = 'error' # str | What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (optional) (default to 'error')
8686
headers = {'key': '{\"Cookie\":\"session=some_id\"}'} # Dict[str, str] | HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&headers[One]=value1&headers=[Another]=value2) or as a JSON encoded object (...&headers={\"One\": \"value1\", \"Another\": \"value2\"}). (optional)
8787
timeout = 10000 # int | Maximum web page retrieval time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000). (optional) (default to 10000)
8888
js = True # bool | Execute on-page JavaScript using a headless browser (true by default). (optional) (default to True)

docs/AIApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ with webscraping_ai.ApiClient(configuration) as api_client:
4848
api_instance = webscraping_ai.AIApi(api_client)
4949
url = 'https://example.com' # str | URL of the target page.
5050
question = 'What is the summary of this page content?' # str | Question or instructions to ask the LLM model about the target page. (optional)
51-
context_limit = 8000 # int | Maximum number of tokens to use as context for the LLM model (4000 by default). (optional) (default to 8000)
51+
context_limit = 4000 # int | Maximum number of tokens to use as context for the LLM model (4000 by default). (optional) (default to 4000)
5252
response_tokens = 100 # int | Maximum number of tokens to return in the LLM model response. The total context size (context_limit) includes the question, the target page content and the response, so this parameter reserves tokens for the response (see also on_context_limit). (optional) (default to 100)
53-
on_context_limit = 'truncate' # str | What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (optional) (default to 'truncate')
53+
on_context_limit = 'error' # str | What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (optional) (default to 'error')
5454
headers = {'key': '{\"Cookie\":\"session=some_id\"}'} # Dict[str, str] | HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&headers[One]=value1&headers=[Another]=value2) or as a JSON encoded object (...&headers={\"One\": \"value1\", \"Another\": \"value2\"}). (optional)
5555
timeout = 10000 # int | Maximum web page retrieval time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000). (optional) (default to 10000)
5656
js = True # bool | Execute on-page JavaScript using a headless browser (true by default). (optional) (default to True)
@@ -80,9 +80,9 @@ Name | Type | Description | Notes
8080
------------- | ------------- | ------------- | -------------
8181
**url** | **str**| URL of the target page. |
8282
**question** | **str**| Question or instructions to ask the LLM model about the target page. | [optional]
83-
**context_limit** | **int**| Maximum number of tokens to use as context for the LLM model (4000 by default). | [optional] [default to 8000]
83+
**context_limit** | **int**| Maximum number of tokens to use as context for the LLM model (4000 by default). | [optional] [default to 4000]
8484
**response_tokens** | **int**| Maximum number of tokens to return in the LLM model response. The total context size (context_limit) includes the question, the target page content and the response, so this parameter reserves tokens for the response (see also on_context_limit). | [optional] [default to 100]
85-
**on_context_limit** | **str**| What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. | [optional] [default to 'truncate']
85+
**on_context_limit** | **str**| What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. | [optional] [default to 'error']
8686
**headers** | [**Dict[str, str]**](str.md)| HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&headers[One]=value1&headers=[Another]=value2) or as a JSON encoded object (...&headers={\"One\": \"value1\", \"Another\": \"value2\"}). | [optional]
8787
**timeout** | **int**| Maximum web page retrieval time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000). | [optional] [default to 10000]
8888
**js** | **bool**| Execute on-page JavaScript using a headless browser (true by default). | [optional] [default to True]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "webscraping_ai"
3-
version = "3.1.2"
3+
version = "3.1.3"
44
description = "WebScraping.AI"
55
authors = ["WebScraping.AI Support <[email protected]>"]
66
license = "NoLicense"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "webscraping-ai"
25-
VERSION = "3.1.2"
25+
VERSION = "3.1.3"
2626
PYTHON_REQUIRES = ">=3.7"
2727
REQUIRES = [
2828
"urllib3 >= 1.25.3, < 2.1.0",

test/test_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

test/test_account_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

test/test_ai_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

test/test_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

test/test_html_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

test/test_selected_html_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

test/test_text_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
99
10-
The version of the OpenAPI document: 3.1.2
10+
The version of the OpenAPI document: 3.1.3
1111
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "3.1.2"
18+
__version__ = "3.1.3"
1919

2020
# import apis into sdk package
2121
from webscraping_ai.api.ai_api import AIApi

webscraping_ai/api/account_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/api/ai_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/api/html_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/api/selected_html_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/api/text_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -87,7 +87,7 @@ def __init__(
8787
self.default_headers[header_name] = header_value
8888
self.cookie = cookie
8989
# Set default User-Agent.
90-
self.user_agent = 'OpenAPI-Generator/3.1.2/python'
90+
self.user_agent = 'OpenAPI-Generator/3.1.3/python'
9191
self.client_side_validation = configuration.client_side_validation
9292

9393
def __enter__(self):

webscraping_ai/configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -397,8 +397,8 @@ def to_debug_report(self):
397397
return "Python SDK Debug Report:\n"\
398398
"OS: {env}\n"\
399399
"Python Version: {pyversion}\n"\
400-
"Version of the API: 3.1.2\n"\
401-
"SDK Package Version: 3.1.2".\
400+
"Version of the API: 3.1.3\n"\
401+
"SDK Package Version: 3.1.3".\
402402
format(env=sys.platform, pyversion=sys.version)
403403

404404
def get_host_settings(self):

webscraping_ai/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
88
9-
The version of the OpenAPI document: 3.1.2
9+
The version of the OpenAPI document: 3.1.3
1010
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212

webscraping_ai/models/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/models/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

webscraping_ai/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
77
8-
The version of the OpenAPI document: 3.1.2
8+
The version of the OpenAPI document: 3.1.3
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)