【发布时间】:2020-05-11 17:37:53
【问题描述】:
所以,基本上我有一个 JSON 文件
{"date":"2020-01-25","explanation":"In this Hubble Space Telescope image the bright, spiky stars lie in the foreground toward the heroic northern constellation Perseus and well within our own Milky Way galaxy. In sharp focus beyond is UGC 2885, a giant spiral galaxy about 232 million light-years distant. Some 800,000 light-years across compared to the Milky Way's diameter of 100,000 light-years or so, it has around 1 trillion stars. That's about 10 times as many stars as the Milky Way. Part of a current investigation to understand how galaxies can grow to such enormous sizes, UGC 2885 was also part of astronomer Vera Rubin's pioneering study of the rotation of spiral galaxies. Her work was the first to convincingly demonstrate the dominating presence of dark matter in our universe.","hdurl":"https://apod.nasa.gov/apod/image/2001/RubinsGalaxy_hst2000.jpg","media_type":"image","service_version":"v1","title":"Rubin's Galaxy","url":"https://apod.nasa.gov/apod/image/2001/RubinsGalaxy_hst1024.jpg"}
这是一个 NASA APOD Api。我想获取一个特定的“hdurl”值并将其设置为批处理中的 URL 变量:“https://apod.nasa.gov/apod/image/2001/RubinsGalaxy_hst2000.jpg”
然后我希望它从该站点下载图像。
老实说,我不知道我应该如何做到这一点。 任何帮助将不胜感激!
【问题讨论】:
标签: json windows batch-file extract