Building a 2020 Presidential Election Dashboard with Flask and Python

Hey [r/flask](https://www.reddit.com/r/flask/), I'm Avi!

Some of the biggest news we see right now are the events leading up to the 2020 general election. It's definitely hard to keep track of it all so I thought it would be fun to bring Flask and Python into it and make something relevant. I love building projects so this is my shot at creating a dashboard that tracks the polling data for the candidates. Check it out and let me know if you have any questions-- happy to help if anyone gets stuck! 🙂

[https://blog.thecodex.me/polling-dashboard-python/](https://blog.thecodex.me/polling-dashboard-python/)

5 thoughts on “Building a 2020 Presidential Election Dashboard with Flask and Python”

  1. Really solid tutorials. Will save these for future reference. I love scraping, visualizing, and analyzing data.

    Why choose Flask over Django? Do you find yourself using Flask more over Django; if so, why?

    Reply
  2. it offers a good overview of flask+scraping but there are some possible improvements. Use lxml parser instead of beautifulsoup(about35x faster). or/And set up the scraping to be async using asyncio(I believe it’s only available in >v3.5.x)

    Reply
  3. Thanks a lot for these tutorials. As someone re-learning flask they are ineffably helpful.

    I am finally making my way through the first of them (the weather app) and have encountered an error that I don’t seem to be able to correct. I have completed everything prior to Part 3, yet upon running [app.py](https://app.py) I am receiving the error: ” werkzeug.routing.BuildError: Could not build url for endpoint ‘results’. Did you mean ‘render\_results’ instead?” I have checked the code numerous times, and re-run it, to no avail. Any ideas?

    Thank you in advance. Apologies for messaging you here!

    Reply

Leave a Comment