Skip to content

ruarq/ukraine-war-heatmap

Repository files navigation

Ukraine War Map/Heatmap

This project takes submissions about Ukraine from subreddits like r/CombatFootage, r/UkraineWarVideoReport, r/ukraine, r/worldnews, r/UkraineInvasionVideos and r/UkrainevRussia and translates them into a heatmap where most of the stuff related to the war in Ukraine is happening. You can see that heatmap here. It updates every 30 minutes.

It's over

The heatmap is sadly not a good way of visualizing the war in ukraine, and activity on reddit is slowly dying. For these reasons I decided to shut the automatic updates down.

Support Ukraine

  • Read this reddit post from r/ukraine for a big list of charities to donate to
  • Do not spread misinformation and do report misinformation
  • You can help the IT ARMY of Ukraine to fight against russia (at your own risk)
  • Checkout all the other projects on github related to ukraine and the invasion

How to run

  1. Install dependencies with pip install dotenv geopy praw

    NOTE: You will also have to install my folium fork.

  2. Create .env file and populate it with:

    REDDIT_USERNAME=<your reddit username>
    REDDIT_PASSWORD=<your reddit password>
    REDDIT_API_ID=<your reddit application id>
    REDDIT_API_SECRECT=<your reddit application secret>
  3. Create the empty directory data/historic

  4. Run with python src/main.py