Giter Site home page Giter Site logo

badgescraper's Introduction

BadgeScraper

Gets the data required by some Steam Trading Card bots.

Requirements

  1. Node.js
apt-get install nodejs
  1. NPM (Node.js Package Manager)
apt-get install npm

How to Install / Run

  1. Clone this Git
git clone https://github.com/DuckTeamOfficial/BadgeScraper.git
cd BadgeScraper
  1. Install Node.js Packages
npm i
  1. Run it!
node index.js

How to Update

  1. Pull the newest commits
git pull
  1. Install additional Node.js packages in case any new ones were added
npm i
  1. Re-run it!
node index.js

Modifying Bot Code

  1. In utils.js add these lines at the top of the file;
var fs = require('fs');
var path = require('path');
  1. 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));
    });
};
  1. Place your set_data.json in the directory along with the bot files.
  2. You're good to go! Your bot should now work again with correct set data!

Notes

  • 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!

Found this helpful and saved your bot?

  • Feel free to send some bitcoin my way;
1NvqNqZrcJuqq6rsPyB2CazapxCZ4Wk6Fs

badgescraper's People

Contributors

dependabot[bot] avatar duckteamofficial avatar gekkedev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

badgescraper's Issues

Which Bot?

Hello,

I wanna ask you if this work with the bot from Blu?

Do you have maybe a video tutorial for a newbienoob like me? I added you in steam.

regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.