natgo / wt-wiki-scraper

War thunder wiki scraper and data collector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

War thunder wiki scraper and data collector

License:GNU General Public License v3.0


Languages

Language:HTML 100.0%Language:TypeScript 0.0%Language:Shell 0.0%Language:JavaScript 0.0%