vintedfrarticleparser

A small lib for parsing vinted.fr articles

Usage no npm install needed!

<script type="module">
  import vintedfrarticleparser from 'https://cdn.skypack.dev/vintedfrarticleparser';
</script>

README

Usage:

const vintedParser = require('vintedfrarticleparser');

let url = 'https://www.vinted.fr/enfants/pulls-a-capuche-and-sweatshirts/1710352-pull-pikachu';

let coolSweat = new vintedParser.Article(url);

coolSweat.fetchDetails()
    .then(details=>{
        console.log(details);
        /*
        {
            'name': 'Pull pikachu',
            'brand': 'nantendoh'
            'price': 20,
            'color': ['jaune', 'noir'],
            'size': 's',
            'photos': ['https://images.vinted.net/thumbs/f800/02604_1ZQUfG.jpeg'],
            'sold': false
        }
        */
    })
    .catch(function(){
        console.log('Something bad happened');
    })