No project description provided
Project description
Leboncoin API Wrapper ![PyPI](https://pypi-camo.freetls.fastly.net/f5f30cf01d1e2be955460af0008a44dd508907b2/68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f6c65626f6e636f696e2d6170692d77726170706572)
Access Leboncoin api in Python
Installation
pip install leboncoin-api-wrapper
Usage
from leboncoin_api_wrapper import Leboncoin
lbc = Leboncoin()
lbc.searchFor("iphone")
lbc.setLimit(10)
lbc.maxPrice(2000)
lbc.setDepartement("tarn")
results = lbc.execute()
for ad in results["ads"]:
print(ad["subject"], ad["price"])
print("\n")
for ad in results["shippable_ads"]:
print(ad["subject"])
print(ad["body"])
print("\n")
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leboncoin-0.2.tar.gz
(20.7 kB
view hashes)
Built Distribution
leboncoin-0.2-py3-none-any.whl
(20.0 kB
view hashes)