Cdiscount price parser
Python package capable of raising the price of any product on the site www.cdiscount.com
Table of contents
Installation
# From Pypi
$ pip install cdiscountpriceparser
# Locally
$ cd cdiscount
$ pip install -e .
Usage
>>> from cdiscount_parser.price_parser import parse_price
# Return "False"
>>> parse_price()
# Return "False"
>>> parse_price("random")
# Return "1776.6"
>>> parse_price("del5397184246030")
Development
$ cd cdiscount
$ pip install -e .[dev]
Flask
$ cd www
$ flask run
Docker usage
$ docker build --tag price_parser .
$ docker run --name price_parser -p 5000:5000 price_parser
Collaborators
Pierre Darrieutort |
Mathieu Daix |