pierredarrieutort / cdiscrap

Python package capable of raising the price of any product on the site www.cdiscount.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cdiscount price parser

Python package capable of raising the price of any product on the site www.cdiscount.com

Table of contents

  1. Installation
  2. Usage
  3. Development
  4. Flask
  5. Docker usage
  6. Collaborators

Installation

# From Pypi
$ pip install cdiscountpriceparser

# Locally
$ cd cdiscount
$ pip install -e .

Link to package on Pypi

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
Pierre Darrieutort
Mathieu Daix
Mathieu Daix

About

Python package capable of raising the price of any product on the site www.cdiscount.com

License:MIT License


Languages

Language:HTML 69.6%Language:Python 27.9%Language:Dockerfile 2.6%