blocket-api 0.5.0__tar.gz → 0.5.1__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.5.0 → blocket_api-0.5.1}/PKG-INFO +4 -2
- {blocket_api-0.5.0 → blocket_api-0.5.1}/README.md +3 -1
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api/__init__.py +2 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api/blocket.py +3 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api/constants.py +7 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api.egg-info/PKG-INFO +4 -2
- {blocket_api-0.5.0 → blocket_api-0.5.1}/pyproject.toml +1 -1
- {blocket_api-0.5.0 → blocket_api-0.5.1}/LICENSE +0 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api/ad_parser.py +0 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api.egg-info/SOURCES.txt +0 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api.egg-info/dependency_links.txt +0 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api.egg-info/requires.txt +0 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/blocket_api.egg-info/top_level.txt +0 -0
- {blocket_api-0.5.0 → blocket_api-0.5.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blocket_api
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
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
|
|
@@ -24,7 +24,7 @@ Dynamic: license-file
|
|
|
24
24
|
|
|
25
25
|
# BlocketAPI
|
|
26
26
|
|
|
27
|
-
[](https://pypi.org/project/blocket_api/) [](https://github.com/dunderrrrrr/blocket_api/blob/main/LICENSE)  ](https://pypi.org/project/blocket_api/) [](https://github.com/dunderrrrrr/blocket_api/blob/main/LICENSE)  
|
|
28
28
|
|
|
29
29
|
BlocketAPI allows users to search [blocket.se](https://blocket.se/) for ads.
|
|
30
30
|
|
|
@@ -50,6 +50,7 @@ from blocket_api import (
|
|
|
50
50
|
CarModel,
|
|
51
51
|
CarSortOrder,
|
|
52
52
|
CarTransmission,
|
|
53
|
+
CarWheelDrive,
|
|
53
54
|
Location,
|
|
54
55
|
)
|
|
55
56
|
|
|
@@ -72,6 +73,7 @@ api.search_car(
|
|
|
72
73
|
price_from=10000,
|
|
73
74
|
price_to=50000,
|
|
74
75
|
transmissions=[CarTransmission.MANUAL],
|
|
76
|
+
wheel_drive=[CarWheelDrive.RWD],
|
|
75
77
|
locations=[Location.STOCKHOLM],
|
|
76
78
|
horsepower_from=200,
|
|
77
79
|
horsepower_to=300,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# BlocketAPI
|
|
6
6
|
|
|
7
|
-
[](https://pypi.org/project/blocket_api/) [](https://github.com/dunderrrrrr/blocket_api/blob/main/LICENSE)  ](https://pypi.org/project/blocket_api/) [](https://github.com/dunderrrrrr/blocket_api/blob/main/LICENSE)  
|
|
8
8
|
|
|
9
9
|
BlocketAPI allows users to search [blocket.se](https://blocket.se/) for ads.
|
|
10
10
|
|
|
@@ -30,6 +30,7 @@ from blocket_api import (
|
|
|
30
30
|
CarModel,
|
|
31
31
|
CarSortOrder,
|
|
32
32
|
CarTransmission,
|
|
33
|
+
CarWheelDrive,
|
|
33
34
|
Location,
|
|
34
35
|
)
|
|
35
36
|
|
|
@@ -52,6 +53,7 @@ api.search_car(
|
|
|
52
53
|
price_from=10000,
|
|
53
54
|
price_to=50000,
|
|
54
55
|
transmissions=[CarTransmission.MANUAL],
|
|
56
|
+
wheel_drive=[CarWheelDrive.RWD],
|
|
55
57
|
locations=[Location.STOCKHOLM],
|
|
56
58
|
horsepower_from=200,
|
|
57
59
|
horsepower_to=300,
|
|
@@ -7,6 +7,7 @@ from .constants import (
|
|
|
7
7
|
CarModel,
|
|
8
8
|
CarSortOrder,
|
|
9
9
|
CarTransmission,
|
|
10
|
+
CarWheelDrive,
|
|
10
11
|
Category,
|
|
11
12
|
McModel,
|
|
12
13
|
McSortOrder,
|
|
@@ -26,6 +27,7 @@ __all__ = [
|
|
|
26
27
|
"CarModel",
|
|
27
28
|
"CarSortOrder",
|
|
28
29
|
"CarTransmission",
|
|
30
|
+
"CarWheelDrive",
|
|
29
31
|
"Category",
|
|
30
32
|
"SortOrder",
|
|
31
33
|
"SubCategory",
|
|
@@ -15,6 +15,7 @@ from .constants import (
|
|
|
15
15
|
CarModel,
|
|
16
16
|
CarSortOrder,
|
|
17
17
|
CarTransmission,
|
|
18
|
+
CarWheelDrive,
|
|
18
19
|
Category,
|
|
19
20
|
Location,
|
|
20
21
|
McModel,
|
|
@@ -90,6 +91,7 @@ class BlocketAPI:
|
|
|
90
91
|
transmissions: list[CarTransmission] = [],
|
|
91
92
|
horsepower_from: int | None = None,
|
|
92
93
|
horsepower_to: int | None = None,
|
|
94
|
+
wheel_drive: list[CarWheelDrive] = [],
|
|
93
95
|
org_id: int | None = None,
|
|
94
96
|
) -> dict[str, Any]:
|
|
95
97
|
url = f"{SITE_URL}/mobility/search/api/search/SEARCH_ID_CAR_USED"
|
|
@@ -115,6 +117,7 @@ class BlocketAPI:
|
|
|
115
117
|
params.extend(QueryParam("make", model.value) for model in models)
|
|
116
118
|
params.extend(QueryParam("exterior_colour", color.value) for color in colors)
|
|
117
119
|
params.extend(QueryParam("transmission", t.value) for t in transmissions)
|
|
120
|
+
params.extend(QueryParam("wheel_drive", w.value) for w in wheel_drive)
|
|
118
121
|
|
|
119
122
|
return _request(url=url, params=params).json()
|
|
120
123
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blocket_api
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
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
|
|
@@ -24,7 +24,7 @@ Dynamic: license-file
|
|
|
24
24
|
|
|
25
25
|
# BlocketAPI
|
|
26
26
|
|
|
27
|
-
[](https://pypi.org/project/blocket_api/) [](https://github.com/dunderrrrrr/blocket_api/blob/main/LICENSE)  ](https://pypi.org/project/blocket_api/) [](https://github.com/dunderrrrrr/blocket_api/blob/main/LICENSE)  
|
|
28
28
|
|
|
29
29
|
BlocketAPI allows users to search [blocket.se](https://blocket.se/) for ads.
|
|
30
30
|
|
|
@@ -50,6 +50,7 @@ from blocket_api import (
|
|
|
50
50
|
CarModel,
|
|
51
51
|
CarSortOrder,
|
|
52
52
|
CarTransmission,
|
|
53
|
+
CarWheelDrive,
|
|
53
54
|
Location,
|
|
54
55
|
)
|
|
55
56
|
|
|
@@ -72,6 +73,7 @@ api.search_car(
|
|
|
72
73
|
price_from=10000,
|
|
73
74
|
price_to=50000,
|
|
74
75
|
transmissions=[CarTransmission.MANUAL],
|
|
76
|
+
wheel_drive=[CarWheelDrive.RWD],
|
|
75
77
|
locations=[Location.STOCKHOLM],
|
|
76
78
|
horsepower_from=200,
|
|
77
79
|
horsepower_to=300,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|