mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-04-21 06:22:42 +02:00
add support for searching with full Leboncoin URLs and new shippable argument
This commit is contained in:
14
README.md
14
README.md
@@ -97,6 +97,20 @@ client.search(
|
||||
)
|
||||
```
|
||||
|
||||
#### Alternatively
|
||||
|
||||
You can also perform search using a full Leboncoin URL:
|
||||
|
||||
```python
|
||||
client.search(
|
||||
url="https://www.leboncoin.fr/recherche?category=9&text=maison&locations=Paris__48.86023250788424_2.339006433295173_9256&square=100-200price=500000-1000000&rooms=1-6&bedrooms=3-6&outside_access=garden,terrace&orientation=south_west&owner_type=private",
|
||||
page=1,
|
||||
limit=35
|
||||
)
|
||||
```
|
||||
|
||||
If `url` is provided, it overrides other keyword parameters such as `text`, `category`, `locations`, etc. However, pagination parameters like `page`, `limit`, and `limit_alu` are still applied.
|
||||
|
||||
### Location
|
||||
|
||||
The `locations` parameter accepts a list of one or more location objects. You can use one of the following:
|
||||
|
||||
Reference in New Issue
Block a user