Skip to main content

No project description provided

Project description

Leboncoin API Wrapper

Allow easy acces to leboncoin api using python

Installation

pip install .

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leboncoin-api-wrapper-0.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

leboncoin_api_wrapper-0.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file leboncoin-api-wrapper-0.2.tar.gz.

File metadata

  • Download URL: leboncoin-api-wrapper-0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.3

File hashes

Hashes for leboncoin-api-wrapper-0.2.tar.gz
Algorithm Hash digest
SHA256 505747a5d810eacc56877034eb57090127ab5dcf177e4df1b73d7b1cb615ace6
MD5 f78ca2c634a2cd31ec869483bfe6da45
BLAKE2b-256 b8b25f171d9a62acc262455c95f7510b9f4f647c905c75e9f103cf50099069eb

See more details on using hashes here.

File details

Details for the file leboncoin_api_wrapper-0.2-py3-none-any.whl.

File metadata

  • Download URL: leboncoin_api_wrapper-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.3

File hashes

Hashes for leboncoin_api_wrapper-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad7e91e377aabf02b6c8693a6f29284351adb62235c2cbf34bf57c47db9ccda
MD5 3828c27ba8686704c53c2aeee93d9953
BLAKE2b-256 f18441845e38cb551f33db58f7c4fe052c7412e2a9a2cdf44c107a0e5d2bb54c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page