{"id":25279891,"url":"https://github.com/titaniumbones/nsf-awards-downloader","last_synced_at":"2025-04-06T12:21:58.026Z","repository":{"id":277098830,"uuid":"929155497","full_name":"titaniumbones/nsf-awards-downloader","owner":"titaniumbones","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-07T22:58:57.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:11:35.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/titaniumbones.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-07T22:57:21.000Z","updated_at":"2025-02-07T22:59:00.000Z","dependencies_parsed_at":"2025-02-12T05:54:19.342Z","dependency_job_id":"9c7002ea-8523-4600-bf07-1c3676d9167e","html_url":"https://github.com/titaniumbones/nsf-awards-downloader","commit_stats":null,"previous_names":["titaniumbones/nsf-awards-downloader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fnsf-awards-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fnsf-awards-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fnsf-awards-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titaniumbones%2Fnsf-awards-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/titaniumbones","download_url":"https://codeload.github.com/titaniumbones/nsf-awards-downloader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247479440,"owners_count":20945460,"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":"2025-02-12T18:04:41.389Z","updated_at":"2025-04-06T12:21:57.936Z","avatar_url":"https://github.com/titaniumbones.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NSF Awards Downloader\n\nA Python script to download and process NSF (National Science Foundation) award data.\n\n## Overview\n\nThis script downloads award data from the NSF website, processes it, and creates both individual year files and a combined dataset. It handles historical NSF award data from 1959 to present.\n\n## Features\n\n- Downloads award data ZIP files from NSF's website\n- Resumes interrupted downloads (skips existing files)\n- Processes multiple JSON files per ZIP\n- Creates per-year JSON files\n- Combines all awards into a single dataset\n- Provides detailed logging and progress updates\n\n## Directory Structure\n\n```\nnsf-awards-downloader/\n├── README.md\n├── requirements.txt\n├── download_awards.py\n├── zips/              # Downloaded ZIP files\n│   └── .gitkeep\n└── json/              # Extracted JSON files\n    └── .gitkeep\n```\n\n## Installation\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/yourusername/nsf-awards-downloader.git\ncd nsf-awards-downloader\n```\n\n2. Create a virtual environment (optional but recommended):\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\u0007ctivate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\nRun the script:\n```bash\npython download_awards.py\n```\n\nThe script will:\n1. Create `zips/` and `json/` directories if they don't exist\n2. Download ZIP files from NSF (skipping any that already exist)\n3. Extract all JSON files from each ZIP\n4. Create yearly JSON files in the `json/` directory\n5. Create a `combined.json` file with all awards\n\n## Output Files\n\n- `zips/YEAR.zip`: Original downloaded ZIP files from NSF\n- `json/YEAR.json`: Extracted and combined JSON for each year\n- `combined.json`: All awards combined into a single file\n\n## Error Handling\n\nThe script includes robust error handling:\n- Verifies download completeness\n- Handles corrupted ZIP files\n- Skips invalid JSON files\n- Provides detailed error logging\n\n## Requirements\n\n- Python 3.7+\n- See requirements.txt for package dependencies\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumbones%2Fnsf-awards-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftitaniumbones%2Fnsf-awards-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitaniumbones%2Fnsf-awards-downloader/lists"}