Created
September 19, 2021 08:21
-
-
Save chriad/8ecbce1fb459bb90d506189e9103c303 to your computer and use it in GitHub Desktop.
download gist comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sh import curl | |
import json | |
o = curl("https://api.github.com/gists/d14ba9ac49019526e0774b28e2d71b16/comments/3260780", | |
s=True, | |
H="Accept: application/vnd.github.v3.raw+json") | |
f = open("out.md", "w") | |
f.write(json.loads(o.stdout)["body"]) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment