GithubHelp home page GithubHelp logo

jsoma / bad-air-cities Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.89 MB

An auto-updating website of major cities' air quality index

Home Page: https://jsoma.github.io/bad-air-cities/

Jupyter Notebook 81.85% HTML 18.15%

bad-air-cities's Introduction

Auto-updating air quality website

A (series of??) tutorials on auto-updating charts using GitHub Actions, GitHub Pages, and DataWrapper. One day this will include a link to the YouTube video!

The problem

There's a website with some data! The data is great, the display is... not.

The steps

We need to abduct the data and make our own visualization of it.

  1. Turn the website's data into a CSV of our own (in this case, we're going to scrape it!)
    • Used pd.read_html to find all of the <table> elements
    • Grabbed the first table as our data
    • Cleaned it up a bit
    • Saved it as air-quality.csv
  2. Make that update automatically!
    • Make it a GitHub repository
    • Turn on GitHub Actions
    • Set up your .yml file
      • BE SURE TO MAKE SURE YOUR NOTEBOOK NAME MATCHES!!!!
  3. Make a website!!!
    • Create an index.html
    • Add it to your repo and push it up to GitHub
    • Turn on GitHub Pages by clicking many buttons
    • Make sure your index.html works by visiting your page
  4. Make a visualization for our webpage
    • We're going to use DataWrapper!!!
    • Make sure we're linking to our data, not uploading it
    • Use the 'responsive iframe' version of embedding
  5. Update our website
    • Add the embed code to our index.html
    • Push it on up to GitHub Pages
    • Wait for GitHub actions to finish deploying our web page
  6. Party!!!!

bad-air-cities's People

Contributors

jsoma 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.