A simple tool for bulk downloading of etsablishment details and ratings data from food.gov.uk
Project description
food_gov_uk
Tools for grabbing data from food.gov.uk
pip install --upgrade git+https://github.com/ouseful-datasupply/food_gov_uk.git
Command Line Interface
The CLI will scrape the UK Food Standards Agency ratings data XML files and construct a simple SQLite database from them containing two tables:
fsa_ratings_metadata: containing the name and publication date of each scraped fileUSER-DEFINED(default:ratingstable) containing the ratings data from the XML files.
The created database can then be used with tools such as datasette.
Usage: fsa_data [OPTIONS] COMMAND
Commands:
collect Collect data from FSA website
Options:
--dbname TEXT SQLite database name (default: fsa_ratings_all.db)
--ratingstable TEXT FSA Ratings table name (default: ratingstable)
--area TEXT Specfiy an area to download data for
--authority TEXT Specfiy a local authority to download data for
--help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ouseful_fsa_datasupply-0.2.0.tar.gz.
File metadata
- Download URL: ouseful_fsa_datasupply-0.2.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33d5db00bd4886f42542ecc0542096e43c923621322a765cce0c73e6e5c5f75b
|
|
| MD5 |
c6e680834475f988b8ce70ae679b2a6b
|
|
| BLAKE2b-256 |
96b9ebdcb1f4fa28aae6b3873669f54a736c21a7f32d86712891c2f3012adadf
|
File details
Details for the file ouseful_fsa_datasupply-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ouseful_fsa_datasupply-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4bfeead0e54158ce570dabf876653e2ca244638a265659846b45c1c37bd5de8
|
|
| MD5 |
476ee34c1512ac3b2e660842dd79fd11
|
|
| BLAKE2b-256 |
482331cfc6dec52bdb282e709ab90cf68bb70c36cf7df2cddc1b32bb58206152
|