Skip to content

This project uses Python to draw Canada and all of its official federal ridings in an election, then colours them based on which party won in that riding.

License

Notifications You must be signed in to change notification settings

iamshirazi/CanadianElections

Repository files navigation

Canadian Elections

Description:

This project uses Python to draw Canada and all of its official ridings in an election, then colours them based on which party won in that riding.

The election maps of Canada are highly detailed, and you can zoom into any part of the country seamlessly.

Will add previous and future elections to this project.

December 2025 UPDATE:

  • Optimized the website for search engines; every election now has its own individual web page.
  • Added the 1962 election to the project!

November 2025 UPDATE:

  • Added the 1935, 1940, 1945, 1949, 1953, 1957 and 1958 elections to the project!
  • Fully automated pull_voting_data.py, archived the old version of the script.

October 2025 UPDATE:

  • Added parliament charts for each currently available election! Just click the > button to see the seat makeup in parliament.
  • Added the 1900, 1904, 1908, 1911, 1917, 1921, 1925, 1926, and 1930 elections to the project!
  • Added favicons, so a maple leaf will appear for this tab in all browsers.

September 2025 UPDATE:

  • Added the 1872, 1874, 1878, 1882, 1887, 1891 AND 1896 elections to the project! You can view them under the NEW dropdown menu. Just hover your mouse over the "More" button and select an election.
  • Minified elections_style.css in the Dockerfile to decrease loading times (improve performance).

August 2025 UPDATE:

  • canadianelections.net is now LIVE! Head over to canadianelections.net to view this entire project!
  • Made the elections.html page mobile friendly. The webpage now looks great on both PC and mobile.
  • Updated Dockerfile and python scripts. They now function better.

July 2025 UPDATE:

  • Performance has been significantly improved. Loading times have decreased by 98%
  • The 1867 election has been added to the project. Huge thanks to Dr. Jack Lucas, Dr. Zach Taylor, and their team for creating and publishing the shapefiles for every federal district of every election in Canadian history.
  • A landing page was created, so now you can click a button to view any of the elections available
  • The Dockerfile was redone, so now you can host this entire project inside of a conatiner

About

This project uses Python to draw Canada and all of its official federal ridings in an election, then colours them based on which party won in that riding.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published