0.2.4 • Published 1 year ago

vinted-monitor v0.2.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.2

1 year ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago