{"id":19255398,"url":"https://github.com/codedcontainer/covid19","last_synced_at":"2025-09-11T14:14:30.456Z","repository":{"id":37882706,"uuid":"257419856","full_name":"codedcontainer/covid19","owner":"codedcontainer","description":"Grabs stats from the CDC website and the Indiana Coronavirus webpage and saves these to a Google Spreadsheet","archived":false,"fork":false,"pushed_at":"2022-12-30T20:17:17.000Z","size":167,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T07:50:43.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codedcontainer.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-20T22:36:37.000Z","updated_at":"2020-05-02T20:18:21.000Z","dependencies_parsed_at":"2023-01-31T15:31:17.525Z","dependency_job_id":null,"html_url":"https://github.com/codedcontainer/covid19","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2Fcovid19","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2Fcovid19/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2Fcovid19/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2Fcovid19/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedcontainer","download_url":"https://codeload.github.com/codedcontainer/covid19/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240349558,"owners_count":19787527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T18:41:01.966Z","updated_at":"2025-02-23T17:24:39.683Z","avatar_url":"https://github.com/codedcontainer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# United States Covid19 Stats To Google Spreadsheets #\nGrabs stats about number of cases, deaths, and more for the United States and individual states. After returning data the data is saved into a private Google spreadsheet.\n\n## Getting Started ##\n1. Install Selenium Web Driver for your OS\n2. Install all packages `npm install`\n3. Create a new Google Spreadsheet doc with a sheet for the US total and each state\n4. Make sure that the column headers match the object property names\n5. Follow the authentication service account steps: https://theoephraim.github.io/node-google-spreadsheet/#/getting-started/authentication\n6. Save credentials from Google API to `./credentials.json`\n7. Replace Google sheet ID in `./index.json`\n8. Go to document share \u003e share with service email address\n9. If you need to update with past records go to http://coronavirusapi.com/, find state, and save as CSV. \n\t- If you open this in Excel you can convert the Unix time to simple date (use resource link below)\n\n## Resources ##\n-[Lodash: how to sort by array of dates](https://stackoverflow.com/questions/26930692/lo-dash-sortby-array-of-dates-in-string-format)\n-[_.isEqual reporting diff when there is none](https://stackoverflow.com/questions/32516519/isequal-reporting-a-difference-when-there-is-none)\n- [Add delay to JS loop](https://stackoverflow.com/questions/3583724/how-do-i-add-a-delay-in-a-javascript-loop)\n- Installing node on Raspberry Pi: `curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -`\n\t- `sudo apt install nodejs`\n- Installing on Raspberry Pi: `apt-get install chromium-chromedriver`\n\t- Linux Path to Chrome web driver: `/usr/lib/chromium-browser/chromedriver`\n- [How to execute node cron job](https://stackoverflow.com/questions/5849402/how-can-you-execute-a-node-js-script-via-a-cron-job#5849463)\n- [Chrome driver headless](https://stackoverflow.com/questions/44197253/headless-automation-with-nodejs-selenium-webdriver#48677891)\n- [Spreadsheet convert Unix to short date time](https://stackoverflow.com/questions/46130132/converting-unix-time-into-date-time-via-excel#48617380)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedcontainer%2Fcovid19","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedcontainer%2Fcovid19","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedcontainer%2Fcovid19/lists"}