cdiscount_robin_clementine is a Python library for parsing any cdiscount product price.
Use the package manager pip to install this package.
pip install -i https://test.pypi.org/simple/ cdiscount_robin_clementine
from cdiscount_robin_clementine.price_parser import parse_price
print(parse_price('<SKU>'))
You can find any product's SKU in the product page URL.
A litte user interface is included to this project
To use it, you need to have Node.js and NPM installed : npm
Go to /parser-app
with command line tool and run :
npm install
then :
npm run serve
Don't forget :
pip install flask_cors
Finally: run flask server :
env FLASK_APP=server.py flask run
Go to : localhost
And you can enjoy!
Copyright (c) 2018 The Python Packaging Authority