Git Product home page Git Product logo

russias-losses's Introduction

Visualization of Russia's military losses throughout the war against Ukraine.

How it works

Architecture diagram

Data is sourced from KyivIndependent on Facebook daily images reporting the Russia's losses, like this https://fb.com/292598229942920. Data before 2023-04-21 was scraped from @KyivIndependent's Twitter until Twitter removed the free api access. updater.py parses the data by passing the image to Tesseract OCR.

The script assumes that images are uploaded daily, contain the word Russia's losses and stay consistent with the 2 columns format. OCR may produce incorrect reading of the image and manual corrections may be made.

The frontend is a simple html file which fetches data.json to generate uPlot charts.

Getting Started

Basically follow the Github Actions job

sudo apt install -y tesseract-ocr libtesseract-dev
python3 -m venv .venv
pip install -r requirements.txt
python3 updater.py
python3 -m http.server

Open localhost:8000/public/ and you should see the website.

Inspiration

This is just a pet project inspired by the leadership of President Zelenskyy and the absolute resilience (and balls of steel!) of the Ukrainian people. I hope this goes to show how terrible the Russian army is.

I made this website in over 2 weeks of my free time where most of it is spent on perfecting the UI.

License

MIT

Acknowledgements

russias-losses's People

Contributors

davidchoo12 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

russias-losses's Issues

'Vehicles And Fuel Tanks' figure is off by ~5000 the last few days

The last few days the Vehicles And Fuel Tanks figure doesn't match the source figure. It sometimes goes down with ~5000 or so. Not exactly sure how it reads the figure wrong, it doesn't just forget the first number for instance.

Could you please fix it, perhaps also correct the days that are off?

Thanks for the site!

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.