Skip to content

Visualization of latest Russia's military losses throughout the ongoing war in Ukraine.

License

Notifications You must be signed in to change notification settings

davidchoo12/russias-losses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Visualization of latest Russia's military losses throughout the ongoing war in Ukraine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published