Giter Site home page Giter Site logo

covid-data-pipeline's Introduction

corona19-data-pipeline

Scan/Trim/Extract Pipeline for Coronavirus Site

  • The code now expects to be run from the root directory of the repo. *
  • This includes IDEs like VS Code. *

Scanner

  1. Gets the data from urls in google sheet.
  2. Pulls the raw HTML
  3. Creates a clean version without the markup
  4. Push it into a github repo.

Backup To S3

  1. pulls an image for each page
  2. pushed it to an S3 bucket

Specialized_Capture

  1. Fire up a captive browser
  2. For a list of urls, take a screen shot
  3. If they change, push them into git

covid-data-pipeline's People

Contributors

joshuaellinger avatar julia326 avatar schwartzadev avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

covid-data-pipeline's Issues

cannot import name 'get_available_sources'

  1. I just performed a fresh install
  2. git checkout dev
  3. python tests/test_sources.py
    Returns:
Traceback (most recent call last):
  File "tests/test_sources.py", line 10, in <module>
    from url_source import UrlSource, get_available_sources
ImportError: cannot import name 'get_available_sources' from 'url_source' (<<my file path>>\url_source.py)

For what it's worth:

$ grep -r "get_available_sources" .
./tests/test_sources.py:from url_source import UrlSource, get_available_sources
./tests/test_sources.py:    sources = get_available_sources()

It doesn't seem like get_available_sources is used anywhere outside of test_sources.

Am I missing something or is this an actual issue?

Resources for what data is avaliable for each WA county

Hey I am not sure what the best place to coordinate on pulling in new data, but I thought I'd take a survey of what data is available in each WA county as of time of writing.

Only 8 are currently reporting negative cases, 2 reporting hospitalization & 1 reporting recoveries.

https://docs.google.com/spreadsheets/d/1CS-jkQ7olNC1N0pi43fYsqNnGhq5jEBjHE0i1fhttCg/edit?usp=sharing

If y'all are planning on diving down to the county level I'm happy to work on any of them, but I care most about getting WA, GA, CA, TX & NJ up.

Integrate S3 for images

Add a new file/class that pushes image data to S3 using a standard naming convention.

It should be like DirectoryCache with methods like:
read/write/delete/list
but write is all we need for now.

Then make the screenshot routine push to that location.

Let's get the keys from the env for now. if the keys aren't present, print a warning and skip the push

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.