Giter VIP home page Giter VIP logo

covdb_tools's Introduction

CovDB Update Tools

Project inspired by PvPDB.io

Toolset used to update the CovDB addon database files with the assistance of RaiderIO database files. I am not an expert python developer (this is my first project using it) so any pull requests with improvements or 'best-practice' suggestions are welcome.

Requirements

  • Python 3
  • MongoDB
  • Battle.net API keys
  • RaiderIO Addon DB files
  • Time (This can be reduced exponentially with more workers/api keys.)

Usage

You will want to setup a file named tokens.py and structure it similar to the below example.

tokens = {
  'covdb-worker-1': {
    'bnet-name': 'covdb-Worker-1',
    'client_id': 'XXXXXXXXX',
    'client_secret': 'XXXXXXXXX'
  },
}
mongo_url = 'mongodb://SuperRoot:SuperSecure!@localhost:27017/'

Execute the below command (taking into account your own worker name(s) added to tokens.py) to intialize the MongoDB databse.

python .\worker-covdb.py init covdb-Worker-1

Execute the below command to begin updating the initialzed database. You can spawn multiple processes if you have multiple workers in your tokens.py file

python .\worker-covdb.py update covdb-Worker-1

Roadmap

  • Improve worker-covdb.py file to make updating more efficiently
    • Use If-Modified-Since HTTP Headers
      • This reduces the overall cost of API calls against each token as any data not updated since the timestamp provided during the intial request does not count as a call.
    • Handle worker allocation within the script

covdb_tools's People

Contributors

chriskader avatar

Watchers

 avatar

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.