decodo-sdk 2.2.0__py3-none-any.whl
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.
- decodo/__init__.py +292 -0
- decodo/api/__init__.py +3 -0
- decodo/api/web_scraping_api.py +74 -0
- decodo/client.py +58 -0
- decodo/codegen/__init__.py +0 -0
- decodo/codegen/codegen.py +71 -0
- decodo/codegen/web_scraping_api/__init__.py +0 -0
- decodo/codegen/web_scraping_api/generate_parameters.py +124 -0
- decodo/codegen/web_scraping_api/generate_targets.py +223 -0
- decodo/codegen/web_scraping_api/shared.py +65 -0
- decodo/codegen/web_scraping_api/types.py +26 -0
- decodo/errors.py +36 -0
- decodo/generated/__init__.py +0 -0
- decodo/generated/decodo.ir.json +2775 -0
- decodo/generated/parameters.py +93 -0
- decodo/generated/targets.py +1585 -0
- decodo/http.py +111 -0
- decodo/py.typed +0 -0
- decodo/schema/__init__.py +25 -0
- decodo/schema/build_target_meta.py +23 -0
- decodo/schema/bundled_schema.py +97 -0
- decodo/schema/constants.py +5 -0
- decodo/schema/expand_path.py +12 -0
- decodo/schema/remote_schema.py +136 -0
- decodo/schema/resolve_latest_ir.py +69 -0
- decodo/schema/types.py +65 -0
- decodo/targets.py +63 -0
- decodo/types/__init__.py +27 -0
- decodo/types/requests.py +7 -0
- decodo/types/responses.py +71 -0
- decodo_sdk-2.2.0.dist-info/METADATA +459 -0
- decodo_sdk-2.2.0.dist-info/RECORD +35 -0
- decodo_sdk-2.2.0.dist-info/WHEEL +5 -0
- decodo_sdk-2.2.0.dist-info/licenses/LICENSE +21 -0
- decodo_sdk-2.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Auto-generated by src/decodo/codegen/web_scraping_api/generate_parameters.py — do not edit
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from typing import Any, TypedDict
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ParameterMeta(TypedDict, total=False):
|
|
8
|
+
type: str
|
|
9
|
+
max_length: int
|
|
10
|
+
minimum: float
|
|
11
|
+
maximum: float
|
|
12
|
+
enum: list[Any]
|
|
13
|
+
items: dict[str, Any]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
parameter_meta: dict[str, ParameterMeta] = {
|
|
17
|
+
"callback_url": ParameterMeta(type="string"),
|
|
18
|
+
"query": ParameterMeta(type="string", max_length=2048),
|
|
19
|
+
"headless": ParameterMeta(type="string", enum=["html", "png"]),
|
|
20
|
+
"locale": ParameterMeta(type="string"),
|
|
21
|
+
"geo": ParameterMeta(type="string"),
|
|
22
|
+
"device_type": ParameterMeta(type="string"),
|
|
23
|
+
"page_from": ParameterMeta(type="number", minimum=0, maximum=100),
|
|
24
|
+
"google_results_language": ParameterMeta(type="string"),
|
|
25
|
+
"google_tbm": ParameterMeta(type="string"),
|
|
26
|
+
"google_tbs": ParameterMeta(type="string"),
|
|
27
|
+
"parse": ParameterMeta(type="boolean"),
|
|
28
|
+
"google_nfpr": ParameterMeta(type="boolean"),
|
|
29
|
+
"google_safe_search": ParameterMeta(type="boolean"),
|
|
30
|
+
"session_id": ParameterMeta(type="string"),
|
|
31
|
+
"xhr": ParameterMeta(type="boolean"),
|
|
32
|
+
"markdown": ParameterMeta(type="boolean"),
|
|
33
|
+
"page_count": ParameterMeta(type="number", minimum=1, maximum=10),
|
|
34
|
+
"date_range": ParameterMeta(type="string"),
|
|
35
|
+
"stars": ParameterMeta(type="number"),
|
|
36
|
+
"adults": ParameterMeta(type="number", minimum=1, maximum=3),
|
|
37
|
+
"children": ParameterMeta(type="number", minimum=1, maximum=3),
|
|
38
|
+
"search_type": ParameterMeta(type="string"),
|
|
39
|
+
"date_start": ParameterMeta(type="string"),
|
|
40
|
+
"date_end": ParameterMeta(type="string"),
|
|
41
|
+
"url": ParameterMeta(type="string", max_length=2056),
|
|
42
|
+
"hotel_occupancy": ParameterMeta(type="string"),
|
|
43
|
+
"domain": ParameterMeta(type="string"),
|
|
44
|
+
"language_code": ParameterMeta(type="string"),
|
|
45
|
+
"transcript_origin": ParameterMeta(type="string"),
|
|
46
|
+
"autoselect_variant": ParameterMeta(type="boolean"),
|
|
47
|
+
"currency": ParameterMeta(type="string"),
|
|
48
|
+
"category": ParameterMeta(type="string"),
|
|
49
|
+
"merchant": ParameterMeta(type="string"),
|
|
50
|
+
"sort_by": ParameterMeta(type="string"),
|
|
51
|
+
"parser_type": ParameterMeta(type="string"),
|
|
52
|
+
"product_id": ParameterMeta(type="string"),
|
|
53
|
+
"fulfillment_type": ParameterMeta(type="string"),
|
|
54
|
+
"walmart_store_id": ParameterMeta(type="string"),
|
|
55
|
+
"delivery_zip": ParameterMeta(type="string"),
|
|
56
|
+
"store_id": ParameterMeta(type="string"),
|
|
57
|
+
"delivery_type": ParameterMeta(type="string"),
|
|
58
|
+
"target_store_id": ParameterMeta(type="string"),
|
|
59
|
+
"lowes_store_id": ParameterMeta(type="string"),
|
|
60
|
+
"user_agent_type": ParameterMeta(type="string"),
|
|
61
|
+
"free_delivery": ParameterMeta(type="boolean"),
|
|
62
|
+
"pickup_today": ParameterMeta(type="boolean"),
|
|
63
|
+
"delivery_today_tomorrow": ParameterMeta(type="boolean"),
|
|
64
|
+
"payload": ParameterMeta(type="string"),
|
|
65
|
+
"proxy_pool": ParameterMeta(type="string", enum=["standard", "premium"]),
|
|
66
|
+
"http_method": ParameterMeta(type="string"),
|
|
67
|
+
"successful_status_codes": ParameterMeta(type="array", items={'type': "number"}),
|
|
68
|
+
"headers": ParameterMeta(type="object"),
|
|
69
|
+
"cookies": ParameterMeta(type="object"),
|
|
70
|
+
"force_headers": ParameterMeta(type="boolean"),
|
|
71
|
+
"force_cookies": ParameterMeta(type="boolean"),
|
|
72
|
+
"prompt": ParameterMeta(type="string", max_length=8192),
|
|
73
|
+
"search": ParameterMeta(type="boolean"),
|
|
74
|
+
"country": ParameterMeta(type="string"),
|
|
75
|
+
"sort": ParameterMeta(type="string"),
|
|
76
|
+
"360": ParameterMeta(type="boolean"),
|
|
77
|
+
"upload_date": ParameterMeta(type="string"),
|
|
78
|
+
"type": ParameterMeta(type="string"),
|
|
79
|
+
"duration": ParameterMeta(type="string"),
|
|
80
|
+
"video_sort_by": ParameterMeta(type="string"),
|
|
81
|
+
"3d": ParameterMeta(type="boolean"),
|
|
82
|
+
"4k": ParameterMeta(type="boolean"),
|
|
83
|
+
"creative_commons": ParameterMeta(type="boolean"),
|
|
84
|
+
"hd": ParameterMeta(type="boolean"),
|
|
85
|
+
"hdr": ParameterMeta(type="boolean"),
|
|
86
|
+
"vr180": ParameterMeta(type="boolean"),
|
|
87
|
+
"live": ParameterMeta(type="boolean"),
|
|
88
|
+
"location": ParameterMeta(type="boolean"),
|
|
89
|
+
"purchased": ParameterMeta(type="boolean"),
|
|
90
|
+
"subtitles": ParameterMeta(type="boolean"),
|
|
91
|
+
"subtitle_origin": ParameterMeta(type="string"),
|
|
92
|
+
"limit": ParameterMeta(type="number", minimum=0, maximum=100),
|
|
93
|
+
}
|