← All work
Greenhouse Gas Facility Data Pull
A Selenium scraper that collects every facility's emissions, owner and location for a Power BI emissions map.
Python · Web scrapingContext
Why it mattered
Environment and Climate Change Canada publishes facility-level greenhouse gas emissions through a search page. Results come ten rows at a time, and details like the parent company, ownership share and coordinates sit on a separate page for each facility.
That data fed a Power BI dashboard mapping emission sources, which needed refreshing every reporting year. I wrote a Python scraper that collects all of it in one run.
The question
How can facility emissions, owners and locations be refreshed every reporting cycle without copying them by hand?
- How do we page through every result for every year?
- How do we capture fields that only exist on detail pages?
Outcome
What it delivers
1M+rows collected and cleaned
1,731facility reports for 2021 alone, each with its own page
1 runper reporting year instead of manual copying
3 yearsof use for the team's emissions mapping dashboard
Demo
See it for yourself
A short screen recording of the finished work. It only plays when you press the button.