{"id":19534271,"url":"https://github.com/nguyenda18/ppp-data-tool","last_synced_at":"2025-07-29T10:36:41.049Z","repository":{"id":42760648,"uuid":"278022290","full_name":"NguyenDa18/PPP-Data-Tool","owner":"NguyenDa18","description":"Command line tool (could later be used as lambda function) to download CSV files from SBA and generate JSON","archived":false,"fork":false,"pushed_at":"2022-12-11T13:00:15.000Z","size":71,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T17:38:48.560Z","etag":null,"topics":["data-analysis","nodejs-server","ppp-files","ppp-loans"],"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/NguyenDa18.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-07-08T07:36:04.000Z","updated_at":"2020-07-21T20:06:09.000Z","dependencies_parsed_at":"2023-01-26T23:45:48.950Z","dependency_job_id":null,"html_url":"https://github.com/NguyenDa18/PPP-Data-Tool","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/NguyenDa18%2FPPP-Data-Tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NguyenDa18%2FPPP-Data-Tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NguyenDa18%2FPPP-Data-Tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NguyenDa18%2FPPP-Data-Tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NguyenDa18","download_url":"https://codeload.github.com/NguyenDa18/PPP-Data-Tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788777,"owners_count":19857695,"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":["data-analysis","nodejs-server","ppp-files","ppp-loans"],"created_at":"2024-11-11T02:13:51.063Z","updated_at":"2025-02-26T03:44:14.711Z","avatar_url":"https://github.com/NguyenDa18.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PPP Data Tool\n- Tool to read PPP CSVs and generate JSON\n\n[Table of PPP loans exceeding 150k](https://airtable.com/shrGClwklrHvQ1LZy)\n    - big datasets for a state had to be split to multiple views\n- Table of PPP loans \u003c 150k : coming soon\n\n## SBA Download Issue\n- The downloadUrl in constants.js might not work because SBA refreshes download session or something\n- To fix this issue and get the right download link, go to the [SBA Download Link](https://sba.app.box.com/s/tvb0v5i57oa8gc6b5dcm9cyw7y2ms6pp), open a Developer Console and inspect the network when you click \"Download\" -that URL fetching the download is the one to replace for downloadUrl\n\n![Image of Simple CLI Tool](https://res.cloudinary.com/dnguyen/image/upload/v1594193917/code-projects/Git/ppp-tool-image_brl15y.png)\n\n![Image of Simple CLI generating data for US States](https://res.cloudinary.com/dnguyen/image/upload/v1594246304/code-projects/Git/states_jonjcc.png)\n\n## Using Tool\n- `npm i` : Install dependencies first\n- `npm start` : Start CLI tool\n- Make sure following dirs are in the data dir:\n    - csv\n    - json\n    - raw\n- Pick option for operation to do\n\n## Loading to Airtable\n- Following CSV files exceed 5MB : CA, FL, IL, NY, TX\n- Split the files using split-data/split.py and use those to upload\n\n## DONE\n- CLI tool basics\n- download zip by url\n- extract zip and save to data repo\n- parse CSV and generate JSON for PPP files of bailous \u003e 150k\n- parse CSVs and generate JSON files for PPP files of bailouts \u003e 150k\n\n## TODO\n- parse CSVs and generate JSON files for PPP files of bailouts \u003c 150k","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenda18%2Fppp-data-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnguyenda18%2Fppp-data-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenda18%2Fppp-data-tool/lists"}