Inspiration
I often looked at vacation sites, thinking of what I should do on my vacations. I would always sort by the price, not caring about what impact my trip would cause. Then, I had an idea: what if people knew exactly how much harm their vacation would cause to the environment and pick a vacation with that in mind. This is what lead me to develop this project.
What it does
It shows you vacation packages from many sources, as well as their estimated carbon emissions, allowing you to make a conscious choice of how you want to spend you time off.
How we built it
First, I scraped the data about vacation packages (which cities they visit, their price, etc.) from a vacation package website. Then, I calculated the distance you would have to travel by plane and used that as an estimate of how much carbon emissions you would produce.
Challenges we ran into
Many websites were built specifically designed to prevent scraping, so I had to get around that. Another issue was that converting cities into coordinates (to calculate the distance between them) took a very long time, so I fixed that by caching the coordinates.
Accomplishments that we're proud of
I'm proud of creating a working website and optimizing the distance calculation.
What we learned
I learned how to calculate the distance between 2 cities and how to integrate python code in websites
What's next for ECO^2
I want to add more sources and make the website more interactive (i.e. allow sorting the table)
Log in or sign up for Devpost to join the conversation.