Code Monkey home page Code Monkey logo

wt-wiki-scraper's Introduction

WT Wiki scraper

GitHub package.json version code style: prettier GitHub

forthebadge forthebadge

War thunder wiki scraper and data collector

Most of the data in final.json currently comes from game files

How does it work

  1. The app starts by querying a public api on wiki.warthunder.com for vehicles and downloads all vehicle pages
  2. Parses the internal vehicle name from wiki pages and combine them with internal gamedata
  3. Reads from game files data for all vehicles and parses it to out/final.json
  4. Downloads all garageimages from wiki.warthunder.com and saves them to garageimages directory
  5. Parses and creates shop.json from shop.blkx

Usage

Prerequisites:

  • POSIX Shell
  • bun

Clone the repo with submodules:

git clone --recursive https://github.com/natgo/wt-wiki-scraper.git

Development

Install dependencies:

bun install

In order to run building in watch mode, run:

bun run build --watch

To prettify source code, run:

bun pretty

In order to do a build, run:

bun run build

Running

Just run

bun start

the output will be in data/data/ directory

Todo

  • Add lint-staged
  • Create a pipeline to wt-app
  • Improve the file structure
  • Complete the scrape module

wt-wiki-scraper's People

Contributors

natgo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wt-wiki-scraper's Issues

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.