{"id":14064837,"url":"https://github.com/simonw/scrape-open-data","last_synced_at":"2025-04-16T01:27:52.697Z","repository":{"id":41319182,"uuid":"501035163","full_name":"simonw/scrape-open-data","owner":"simonw","description":"Scrape various open data directories to create an index of what's available out there","archived":false,"fork":false,"pushed_at":"2025-02-13T14:36:49.000Z","size":6332371,"stargazers_count":36,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T03:32:02.622Z","etag":null,"topics":["git-scraping","socrata"],"latest_commit_sha":null,"homepage":"https://open-data.datasette.io","language":"Python","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/simonw.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"simonw"}},"created_at":"2022-06-07T23:31:14.000Z","updated_at":"2025-02-13T14:36:56.000Z","dependencies_parsed_at":"2023-10-21T02:02:05.077Z","dependency_job_id":"dd5f06d3-3884-4ea6-a99d-312a926ffd87","html_url":"https://github.com/simonw/scrape-open-data","commit_stats":{"total_commits":1901,"total_committers":2,"mean_commits":950.5,"dds":0.008942661756970005,"last_synced_commit":"c335daa0fb12047cf5d1750f74f0f65ddcf35466"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fscrape-open-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fscrape-open-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fscrape-open-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fscrape-open-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/scrape-open-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249181431,"owners_count":21225900,"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":["git-scraping","socrata"],"created_at":"2024-08-13T07:04:06.825Z","updated_at":"2025-04-16T01:27:52.673Z","avatar_url":"https://github.com/simonw.png","language":"Python","funding_links":["https://github.com/sponsors/simonw"],"categories":["Python"],"sub_categories":[],"readme":"# scrape-open-data\n\n[![Scrape latest data](https://github.com/simonw/scrape-open-data/actions/workflows/scrape.yml/badge.svg)](https://github.com/simonw/scrape-open-data/actions/workflows/scrape.yml)\n\nScrapes every available dataset from Socrata and stores them as newline-delimited JSON in this repository, to track changes over time through [Git scraping](https://simonwillison.net/2020/Oct/9/git-scraping/).\n\n- `socrata/data.delaware.gov.jsonl` contains the latest datasets for a specific domain. This is updated twice a day.\n- `socrata/data.delaware.gov.stats.jsonl` contains information on page views and download numbers. This is updated once a week to avoid every single fetch including updated counts for many different datasets.\n\nThe resulting database is deployed to https://open-data.datasette.io/\n\n## scrape_socrata.py\n\nRun `python scrape_socrata.py socrata/` to scrape the data from Socrata and save it in the `socrata/` directory.\n\nAdd `--stats` to include page view and download statistics in separate files.\n\nAdd `--verbose` for verbose output.\n\n## build_socrata_db.py`\n\nRun this command to build a SQLite database from the `.jsonl` files in `socrata/`:\n\n    python build_socrata_db.py socrata.db socrata\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fscrape-open-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Fscrape-open-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fscrape-open-data/lists"}