blocket-api 0.4.0__tar.gz → 0.4.2__tar.gz
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.
- {blocket_api-0.4.0 → blocket_api-0.4.2}/PKG-INFO +4 -2
- {blocket_api-0.4.0 → blocket_api-0.4.2}/README.md +3 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api/blocket.py +6 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api.egg-info/PKG-INFO +4 -2
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api.egg-info/requires.txt +0 -1
- {blocket_api-0.4.0 → blocket_api-0.4.2}/pyproject.toml +1 -2
- {blocket_api-0.4.0 → blocket_api-0.4.2}/LICENSE +0 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api/__init__.py +0 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api/ad_parser.py +0 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api/constants.py +0 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api.egg-info/SOURCES.txt +0 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api.egg-info/dependency_links.txt +0 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/blocket_api.egg-info/top_level.txt +0 -0
- {blocket_api-0.4.0 → blocket_api-0.4.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blocket_api
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A python API wrapper for blocket.se
|
|
5
5
|
Author-email: dunderrrrrr <emil.bjorkroth@gmail.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -15,7 +15,6 @@ Requires-Dist: pydantic>=2.11.7
|
|
|
15
15
|
Requires-Dist: mkdocs>=1.6.1
|
|
16
16
|
Requires-Dist: mkdocs-material>=9.6.21
|
|
17
17
|
Requires-Dist: mkdocs-swagger-ui-tag>=0.7.2
|
|
18
|
-
Requires-Dist: websockets>=15.0.1
|
|
19
18
|
Requires-Dist: beautifulsoup4>=4.14.2
|
|
20
19
|
Requires-Dist: ruff>=0.14.10
|
|
21
20
|
Dynamic: license-file
|
|
@@ -75,6 +74,7 @@ api.search_car(
|
|
|
75
74
|
price_to=50000,
|
|
76
75
|
transmissions=[CarTransmission.MANUAL],
|
|
77
76
|
locations=[Location.STOCKHOLM],
|
|
77
|
+
org_id=1337, # dealer or store id
|
|
78
78
|
)
|
|
79
79
|
|
|
80
80
|
# search for boats
|
|
@@ -88,6 +88,7 @@ api.search_boat(
|
|
|
88
88
|
length_to=15,
|
|
89
89
|
price_from=20000,
|
|
90
90
|
price_to=90000,
|
|
91
|
+
org_id=1337, # dealer or store id
|
|
91
92
|
)
|
|
92
93
|
|
|
93
94
|
# search for motorcycles
|
|
@@ -102,6 +103,7 @@ api.search_mc(
|
|
|
102
103
|
price_to=90000,
|
|
103
104
|
engine_volume_from=100,
|
|
104
105
|
engine_volume_to=200,
|
|
106
|
+
org_id=1337, # dealer or store id
|
|
105
107
|
)
|
|
106
108
|
|
|
107
109
|
|
|
@@ -53,6 +53,7 @@ api.search_car(
|
|
|
53
53
|
price_to=50000,
|
|
54
54
|
transmissions=[CarTransmission.MANUAL],
|
|
55
55
|
locations=[Location.STOCKHOLM],
|
|
56
|
+
org_id=1337, # dealer or store id
|
|
56
57
|
)
|
|
57
58
|
|
|
58
59
|
# search for boats
|
|
@@ -66,6 +67,7 @@ api.search_boat(
|
|
|
66
67
|
length_to=15,
|
|
67
68
|
price_from=20000,
|
|
68
69
|
price_to=90000,
|
|
70
|
+
org_id=1337, # dealer or store id
|
|
69
71
|
)
|
|
70
72
|
|
|
71
73
|
# search for motorcycles
|
|
@@ -80,6 +82,7 @@ api.search_mc(
|
|
|
80
82
|
price_to=90000,
|
|
81
83
|
engine_volume_from=100,
|
|
82
84
|
engine_volume_to=200,
|
|
85
|
+
org_id=1337, # dealer or store id
|
|
83
86
|
)
|
|
84
87
|
|
|
85
88
|
|
|
@@ -88,6 +88,7 @@ class BlocketAPI:
|
|
|
88
88
|
milage_to: int | None = None,
|
|
89
89
|
colors: list[CarColor] = [],
|
|
90
90
|
transmissions: list[CarTransmission] = [],
|
|
91
|
+
org_id: int | None = None,
|
|
91
92
|
) -> dict[str, Any]:
|
|
92
93
|
url = f"{SITE_URL}/mobility/search/api/search/SEARCH_ID_CAR_USED"
|
|
93
94
|
|
|
@@ -101,6 +102,7 @@ class BlocketAPI:
|
|
|
101
102
|
"year_to": year_to,
|
|
102
103
|
"milage_from": milage_from,
|
|
103
104
|
"milage_to": milage_to,
|
|
105
|
+
"orgId": org_id,
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
params = [QueryParam(k, v) for k, v in param_dict.items() if v is not None]
|
|
@@ -125,6 +127,7 @@ class BlocketAPI:
|
|
|
125
127
|
price_to: int | None = None,
|
|
126
128
|
length_from: int | None = None,
|
|
127
129
|
length_to: int | None = None,
|
|
130
|
+
org_id: int | None = None,
|
|
128
131
|
) -> Any:
|
|
129
132
|
url = f"{SITE_URL}/mobility/search/api/search/SEARCH_ID_BOAT_USED"
|
|
130
133
|
|
|
@@ -136,6 +139,7 @@ class BlocketAPI:
|
|
|
136
139
|
"price_to": price_to,
|
|
137
140
|
"length_feet_from": length_from,
|
|
138
141
|
"length_feet_to": length_to,
|
|
142
|
+
"orgId": org_id,
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
params = [QueryParam(k, v) for k, v in param_dict.items() if v is not None]
|
|
@@ -158,6 +162,7 @@ class BlocketAPI:
|
|
|
158
162
|
price_to: int | None = None,
|
|
159
163
|
engine_volume_from: int | None = None,
|
|
160
164
|
engine_volume_to: int | None = None,
|
|
165
|
+
org_id: int | None = None,
|
|
161
166
|
) -> dict[str, Any]:
|
|
162
167
|
url = f"{SITE_URL}/mobility/search/api/search/SEARCH_ID_MC_USED"
|
|
163
168
|
|
|
@@ -169,6 +174,7 @@ class BlocketAPI:
|
|
|
169
174
|
"price_to": price_to,
|
|
170
175
|
"engine_volume_from": engine_volume_from,
|
|
171
176
|
"engine_volume_to": engine_volume_to,
|
|
177
|
+
"orgId": org_id,
|
|
172
178
|
}
|
|
173
179
|
|
|
174
180
|
params = [QueryParam(k, v) for k, v in param_dict.items() if v is not None]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blocket_api
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A python API wrapper for blocket.se
|
|
5
5
|
Author-email: dunderrrrrr <emil.bjorkroth@gmail.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -15,7 +15,6 @@ Requires-Dist: pydantic>=2.11.7
|
|
|
15
15
|
Requires-Dist: mkdocs>=1.6.1
|
|
16
16
|
Requires-Dist: mkdocs-material>=9.6.21
|
|
17
17
|
Requires-Dist: mkdocs-swagger-ui-tag>=0.7.2
|
|
18
|
-
Requires-Dist: websockets>=15.0.1
|
|
19
18
|
Requires-Dist: beautifulsoup4>=4.14.2
|
|
20
19
|
Requires-Dist: ruff>=0.14.10
|
|
21
20
|
Dynamic: license-file
|
|
@@ -75,6 +74,7 @@ api.search_car(
|
|
|
75
74
|
price_to=50000,
|
|
76
75
|
transmissions=[CarTransmission.MANUAL],
|
|
77
76
|
locations=[Location.STOCKHOLM],
|
|
77
|
+
org_id=1337, # dealer or store id
|
|
78
78
|
)
|
|
79
79
|
|
|
80
80
|
# search for boats
|
|
@@ -88,6 +88,7 @@ api.search_boat(
|
|
|
88
88
|
length_to=15,
|
|
89
89
|
price_from=20000,
|
|
90
90
|
price_to=90000,
|
|
91
|
+
org_id=1337, # dealer or store id
|
|
91
92
|
)
|
|
92
93
|
|
|
93
94
|
# search for motorcycles
|
|
@@ -102,6 +103,7 @@ api.search_mc(
|
|
|
102
103
|
price_to=90000,
|
|
103
104
|
engine_volume_from=100,
|
|
104
105
|
engine_volume_to=200,
|
|
106
|
+
org_id=1337, # dealer or store id
|
|
105
107
|
)
|
|
106
108
|
|
|
107
109
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "blocket_api"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.2"
|
|
4
4
|
description = "A python API wrapper for blocket.se"
|
|
5
5
|
authors = [{name = "dunderrrrrr", email = "emil.bjorkroth@gmail.com"}]
|
|
6
6
|
readme = "README.md"
|
|
@@ -15,7 +15,6 @@ dependencies = [
|
|
|
15
15
|
"mkdocs>=1.6.1",
|
|
16
16
|
"mkdocs-material>=9.6.21",
|
|
17
17
|
"mkdocs-swagger-ui-tag>=0.7.2",
|
|
18
|
-
"websockets>=15.0.1",
|
|
19
18
|
"beautifulsoup4>=4.14.2",
|
|
20
19
|
"ruff>=0.14.10",
|
|
21
20
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|