Skip to content

Jonty/pretadata

Repository files navigation

Pretadata

This repository contains data about all 636 Pret A Manger fast food restaurants in the world, and the code used to extract it from their websites.

And a map. Look at all those Prets.

Data

Other data

  • prets.kml is an alternative geographic format
  • old_pretadata contains historical 2015 UK Pret data from before their website was changed

Code

  • Prets in the uk, fr, us are fully extracted from the Pret locations websites by pretascraper.py
  • hk data is partial, and lat/lon locations have been automatically geocoded using pretascraper_hk.py

All other regions have been manually transcribed as they mostly have a single Pret, and all the websites are different.

prets.geojson and prets.kml are generated by generate_mapping_data.py.

This data is automatically updated once a month by Github Actions (where possible).

Example JSON data

{
    "details": {
        "id": "london-319-high-holborn",
        "name": "High Holborn, 319",
        "open": true,
        "phone_number": "+442079325202",
        "url": "https://locations.pret.co.uk/london/319-high-holborn",
        "data_last_updated": "2021-07-10T20:27:00.561142"
    },
    "facilities": {
        "seating": false,
        "wheelchair": true,
        "wifi": true
    },
    "location": {
        "street": "319 High Holborn",
        "city": "London",
        "postal_code": "WC1V 7PU",
        "country": "GB",
        "latitude": "51.518183732165305",
        "longitude": "-0.11271347393128961"
    },
    "opening_hours": {
        "monday": {
            "open": "7:00",
            "close": "15:00",
            "closed": false
        },
        "tuesday": {
            "open": null,
            "close": null,
            "closed": true
        },
        "wednesday": {
            "open": null,
            "close": null,
            "closed": true
        },
        "thursday": {
            "open": null,
            "close": null,
            "closed": true
        },
        "friday": {
            "open": "7:00",
            "close": "15:00",
            "closed": false
        },
        "saturday": {
            "open": null,
            "close": null,
            "closed": true
        },
        "sunday": {
            "open": null,
            "close": null,
            "closed": true
        }
    }
}

About

Data about every Pret A Manger. And maps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages