A simple Python Wrapper for CDiscount API using Requests.
Project description
PythonCdiscount is a small wrapper around the Cdiscount Products API.
Requirements
PythonCdiscount requires Requests, an elegant and simple HTTP library for Python, built for human beings.
You also need a Cdiscount API key, which you can get from here : https://dev.cdiscount.com
Installation
pip install pycdiscount
Example Use
from pycdiscount import PyCdiscount
app = PyCdiscount(api_key="YOUR API KEY")
searchresult = app.search("Iphone")
All results are returned in JSON format. If you want to show them in the console, I suggest you use the pprint module.
Questions, Comments, etc?
Feel free to hit me up at the following:
GitHub: https://github.com/wblondel
Twitter: http://twitter.com/wgblondel
Email: contact@williamblondel.fr
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
pycdiscount-0.3.5.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for pycdiscount-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40a25327f19b08233acb088e1798b61faa97a8081aaa6da13871366054ee5332 |
|
MD5 | e971ba50659926778286800ef86f413a |
|
BLAKE2b-256 | e20bb6a0c837df8bbb32a1acd58673f58c42d03e39ccc0f2001ece5512f82177 |