{"repo":"etienne-hd/lbc","free":true,"listed":false,"github":"https://github.com/etienne-hd/lbc","clone":"git clone https://github.com/etienne-hd/lbc.git","description":"Unofficial client for Leboncoin API","language":"Python","stars":207,"topics":["api","lbc","leboncoin","wrapper"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"lbc Unofficial client for Leboncoin API lbc is not affiliated with, endorsed by, or in any way associated with Leboncoin or its services. Use at your own risk. Installation Required Python 3.10+ Usage Start with the examples to quickly understand how to use the library in real-world scenarios. Client To create client you need to use lbc.Client class Proxy You can also configure the client to use a proxy by providing a Proxy object: Search To perform a search, use the client.search method. This function accepts keyword arguments ( kwargs ) to customize your query. For example, if you're looking for houses that include both land and parking, you can specify: These values correspond to what you’d find in a typical Leboncoin URL, like: Here's a complete example of a search query: Alternatively You can also perform search using a full Leboncoin URL: 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. Multiple Search You can pass a list of values to search for multiple terms at once. The values are converted into a Leboncoin OR query. For example: This generates a search equivalent to: This can be useful for combining multiple keywords into a single search query without having to perform separate requests. Location The locations parameter accepts a list of one or more location objects. You can use one of the following: lbc.Region(...) lbc.Department(.","default_branch":null,"files":null,"tree":[],"storefront":"/r/etienne-hd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/etienne-hd/lbc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}