Skip to main content

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ouseful_fsa_datasupply-0.2.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ouseful_fsa_datasupply-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for ouseful_fsa_datasupply-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33d5db00bd4886f42542ecc0542096e43c923621322a765cce0c73e6e5c5f75b
MD5 c6e680834475f988b8ce70ae679b2a6b
BLAKE2b-256 96b9ebdcb1f4fa28aae6b3873669f54a736c21a7f32d86712891c2f3012adadf

See more details on using hashes here.

File details

Details for the file ouseful_fsa_datasupply-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ouseful_fsa_datasupply-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4bfeead0e54158ce570dabf876653e2ca244638a265659846b45c1c37bd5de8
MD5 476ee34c1512ac3b2e660842dd79fd11
BLAKE2b-256 482331cfc6dec52bdb282e709ab90cf68bb70c36cf7df2cddc1b32bb58206152

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page