1.0.8 • Published 5 years ago
vintedfrarticleparser v1.0.8
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');
})