Gets the data required by some Steam Trading Card bots.
- Node.js
apt-get install nodejs
- NPM (Node.js Package Manager)
apt-get install npm
- Clone this Git
git clone https://github.com/DuckTeamOfficial/BadgeScraper.git
cd BadgeScraper
- Install Node.js Packages
npm i
- Run it!
node index.js
- Pull the newest commits
git pull
- Install additional Node.js packages in case any new ones were added
npm i
- Re-run it!
node index.js
- In utils.js add these lines at the top of the file;
var fs = require('fs');
var path = require('path');
- In utils.js replace t.getCardsInSets function with the following;
t.getCardsInSets = (callback) => {
fs.readFile(path.join(__dirname,'.','set_data.json'), 'utf8', (err,data) => {
if (err) {
callback(err);
}
callback(null, JSON.parse(data));
});
};
- Place your set_data.json in the directory along with the bot files.
- You're good to go! Your bot should now work again with correct set data!
- Script may take 30 minutes or more to complete on a slow connection!
- set_data.json is only provided once the script completes.
- Adjust reqLimit to change the speed of the script (warning below).
var reqLimit = 25; // Max simultaneous requests
- Setting reqLimit too high on a slow connection will possibly result in the script getting stuck and never completing, or even crashing, setting it too high on a fast connection may also get you rate-limited by Steam!
- Feel free to send some bitcoin my way;
1NvqNqZrcJuqq6rsPyB2CazapxCZ4Wk6Fs
- Pay for a beer or two; PayPal Link