Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/austindizzy/wvfoia-sync
https://github.com/austindizzy/wvfoia-sync
datasette foia open-data
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/austindizzy/wvfoia-sync
- Owner: AustinDizzy
- License: gpl-3.0
- Created: 2023-12-19T06:30:32.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-29T09:07:20.000Z (2 months ago)
- Last Synced: 2024-10-29T10:58:03.725Z (2 months ago)
- Topics: datasette, foia, open-data
- Language: Jupyter Notebook
- Homepage: https://l.abs.codes/data/wv-foia
- Size: 502 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wvfoia-sync
This project syncs a local SQLite database with the contents of the [(WV)FOIA Database maintained by the West Virginia Secretary of State's Office](https://erls.wvsos.gov/FOIA_Database/Search).
* https://l.abs.codes/data/wv-foia - browse and query the database via Datasette
* [Latest Release (v1.0.2024-12-17)](https://github.com/AustinDizzy/wvfoia-sync/releases/latest) - download the latest database in fullThe database is updated automatically every day at 4AM Eastern Time and published via a new GitHub Release. The updated database is then immediately available on the Datasette instance.
## Usage
```
$ python3 main.py --help
usage: main.py [-h] [--mode {range,retrieve,crawl}] [--db DB] [--verbose] [-d] [--range RANGE] ...wvfoia-sync cli syncs the WVSOS FOIA Database from the web to a local SQLite(3) database
positional arguments:
ids IDoptions:
-h, --help show this help message and exit
--mode {range,retrieve,crawl}
change the sync mode
--db DB database file
--verbose verbose output
-d, --debug debug output
--range RANGE range of IDs to sync (requires 'range' mode)
```There are three primary modes:
* **range** - does a random spray retrieval on entries between a range (ex. 1 - 1000)
* **crawl** - begins a crawl from a last known entry ID and continues until the first unknown entry
* **retrieve** - simply retrieves the details from one (or multiple) FOIA Database entries and displays them## License
GNU General Public License v3.0. See [LICENSE](./LICENSE) for full license text.This license only applies to the code and code assets in this repository. The data contained in the database in the release assets is classified as public record under West Virginia Code and is released by the West Virginia Secretary of State pursuant to [W. Va. Code of State Rules § 153-52](https://apps.sos.wv.gov/adlaw/csr/rule.aspx?rule=153-52) and [W. Va. Code § 29B-1-3(f)](https://code.wvlegislature.gov/29B-1-3/).
To increase open access to the dataset, data is released under the [Open Commons Public Domain Dedication and License(PDDL) v1.0](https://opendatacommons.org/licenses/pddl/1-0/).