Giter Site home page Giter Site logo

Comments (5)

benilovj avatar benilovj commented on June 11, 2024

Hi James,

If it helps, there's an (unsupported) API; here it is for your example:

https://www.gov.uk/api/government/publications/msn-1853-m-boatmasters-qualifications-crew-and-hours-of-work.json

However this only contains some metadata, not the publication content.

from whitehall.

billinghamj avatar billinghamj commented on June 11, 2024

Oh weird. I didn't know you still had the routes where the path starts with /api/

We've ended up using the Atom feed, as that does include the content (which is the key stuff we need). It would still be good to add JSON feeds for content though.

from whitehall.

elliotcm avatar elliotcm commented on June 11, 2024

@billinghamj We have those, looking like this: https://www.gov.uk/api/content/government/publications/msn-1853-m-boatmasters-qualifications-crew-and-hours-of-work

Also unsupported, currently.

from whitehall.

billinghamj avatar billinghamj commented on June 11, 2024

@elliotcm Doesn't include the publication content though - which is the key thing. Currently the only way to get content is to use a slow & primitive ATOM/RSS feed.

Or to scrape the HTML of course.

from whitehall.

elliotcm avatar elliotcm commented on June 11, 2024

Ah yes, that part of the site hasn't been fully migrated over to that API yet. It will fill out eventually.

from whitehall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.