0.0.8 ā€¢ Published 2 months ago

steam-workshop-scraper v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
2 months ago

Gets data about Steam workshop mods/assets

Prerequisites

  • npm >=10.x.x
  • node >=18.x

Install

npm install steam-workshop-scraper

Useage

const SteamWorkshopScraper = require('steam-workshop-scraper');
var sws = new SteamWorkshopScraper();

sws.GetChangeLog(670764308).then(function (data) {
  console.log('Last entry in changelog:', data.data[0]);
});

sws.GetInfo(670764308).then(function (data) {
  console.log('Info:', data);
});

Or with update event

const SteamWorkshopScraper = require('steam-workshop-scraper');
var sws = new SteamWorkshopScraper();

// Add your steam workshop ids what should be monitored
sws.AddToUpdates([1384657523, 670764308, 589205263]);
// Or remove some if you don't need them anymore
sws.RemoveFromUpdates([670764308, 1384657523]);
// Get the event fired if a workshop item gets updated.
sws.Event.on('update', function(data){
  console.log('data on update:', data);
});
//To trigger the update manually
sws.TriggerUpdate().then(function (){
  console.log(sws.workshopMap);
});

Run tests

npm test

Author

šŸ‘¤ axi92

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 axi92. This project is MIT licensed.


This README was generated with ā¤ļø by readme-md-generator

0.0.8

2 months ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago