Skip to content

Automatically generate Dart wrappers and doc from MDN #570

Discussion options

You must be logged in to vote

See https://developer.mozilla.org/en-US/docs/MDN/Tools/Unsupported_GET_API for info about the only thing available.

For example, to get a JSON representation of the https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement article, you can using https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/index.json

Is this ok?

Yes, it’s OK to scrape the production site to get either that JSON data or the HTML source, or any other data you want to get.

That said, you don’t actually need to remotely scrape the production site — you can instead run a “preview server” locally to get what you need. The details are in step 6 of https://github.com/mdn/content/blob/main/README.md#more-subst…

Replies: 0 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jodinathan
Comment options

You must be logged in to vote
2 replies
@peterbe
Comment options

@jodinathan
Comment options

Comment options

You must be logged in to vote
1 reply
@sideshowbarker
Comment options

Comment options

You must be logged in to vote
2 replies
@sideshowbarker
Comment options

@jodinathan
Comment options

Comment options

You must be logged in to vote
1 reply
@sideshowbarker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants