Coder Social home page Coder Social logo

csianglim / weather-gc-ca-python Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 17.0 894 KB

:sun_with_face: Jupyter notebooks for scraping Environment Canada weather data

Home Page: https://www.ubcenvision.com/blog/2017/11/30/jupyter-part1.html

License: MIT License

Jupyter Notebook 100.00%
python weather canada environment

weather-gc-ca-python's Introduction

weather-gc-ca-python Binder

Jupyter notebooks for scraping Environment Canada weather data


This repo demonstrates how to download Environment Canada's weather data using Python with popular data analysis libraries like pandas and Beautiful Soup. Read the accompanying blog post here on the UBC Envision website for more details.

Summary

  1. Download CSV weather data from this link: http://climate.weather.gc.ca/climate_data/bulk_data_e.html?format=csv&stationID=51442&Year=2020&Month=01&timeframe=1

  2. Replace stationID, Year and Month with the dataset that you'd like to download.

  3. StationIDs can be found here: http://climate.weather.gc.ca/historical_data/search_historic_data_e.html

  4. This notebook shows you how to download multiple CSV files across different cities by scraping data using BeautifulSoup.

  • Scripts are working as of March 2020

Launch

Binder

To run this notebook interactively on the cloud, click the Launch Binder button or use the Syzygy platform.

Feel free to use, copy, paste, modify or distribute this notebook however you wish.

These examples are provided as-is with no guarantee that they will work in the future if Environment Canada modifies their API.

Similar projects:

  • data-gc-ca-api, but it's about 2 years old, not sure if it's still working.

Contents

Data Source

weather-gc-ca-python's People

Contributors

csianglim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.