0.2.4 • Published 2 years ago

vinted-monitor v0.2.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

About

The first version of vinted-monitor allows you to monitor Vinted URL, looking for certains items.

Installation

npm install vinted-monitor

Examples

import VintedMonitor from "vinted-monitor";

Create a new Monitor

// Create the Monitor
const Monitor = new VintedMonitor();
// OR
const Monitor = new VintedMonitor(5 * 60 * 1000);
// Will take items that were released less than 5 minutes ago
// Default value is 1 hour

// Now, watch for 1 or more Vinted URL
Monitor.watch("https://www.vinted.fr/vetements?search_text=casquette&brand_id[]=362&order=newest_first&color_id[]=12");

// Finally, create a function that will be executed
// when a new item is detected
Monitor.onItemFound(item => {
    console.log("I detect a new Item !");
    console.log("I found this item using this url", item.info.searchUrl);
    console.log("This item has been posted by", item.user.login);
    console.log("The item name is", item.info.title);
    console.log("This item costs", item.info.price, "€");
    console.log("This item was posted on", item.info.date.toString());
})

// You can stop watching a Vinted URL
Monitor.unWatch("https://www.vinted.fr/vetements?search_text=casquette&brand_id[]=362&order=newest_first&color_id[]=12");

And many others variables are available !

0.2.3

2 years ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.2

2 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago