Skip to main content

food_gov_uk

Tools for grabbing data from food.gov.uk

pip install --upgrade git+https://github.com/ouseful-datasupply/food_gov_uk.git

Binder

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 file
  • USER-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.

Metadata

Release files for ouseful-fsa-datasupply 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ouseful-fsa-datasupply 0.2.0
File Size Uploaded
ouseful_fsa_datasupply-0.2.0.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ouseful-fsa-datasupply 0.2.0
File Interpreter ABI Platform
ouseful_fsa_datasupply-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / ouseful_fsa_datasupply-0.2.0.tar.gz

Download URL ouseful_fsa_datasupply-0.2.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
33d5db00bd4886f42542ecc0542096e43c923621322a765cce0c73e6e5c5f75b
BLAKE2b-256 checksum
How to use checksums
96b9ebdcb1f4fa28aae6b3873669f54a736c21a7f32d86712891c2f3012adadf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release files / ouseful_fsa_datasupply-0.2.0-py3-none-any.whl

Download URL ouseful_fsa_datasupply-0.2.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4bfeead0e54158ce570dabf876653e2ca244638a265659846b45c1c37bd5de8
BLAKE2b-256 checksum
How to use checksums
482331cfc6dec52bdb282e709ab90cf68bb70c36cf7df2cddc1b32bb58206152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page