1

I need to extract content from a project's GitHub release notes, in automated fashion. The surrounding HTML content of the website is not needed and tends to complicate parsing.

Does GitHub provide a plain text URL for the release notes (similar to the raw view for files), or do I have to work with the HTML anyway?

1

1 Answer 1

3

Call

# substitute placeholders accordingly ($OWNER $REPO $TAG)
curl -L "https://api.github.com/repos/$OWNER/$REPO/releases/tags/$TAG"

and extract the name and body keys from the returned JSON.

Sign up to request clarification or add additional context in comments.

2 Comments

If calling this from a programming language one can of course use a native web library rather than curl.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.