简体   繁体   English

从外部网站收集图像

[英]Collecting image from external site

I am making a startpage for my browser right now. 我正在为我的浏览器制作一个初始页面。 I would like to put the day's XKCD and place it on my startpage. 我想把当天的XKCD放在我的首页上。 How can I get the image from xkcd.com and place it on my startpage? 如何从xkcd.com获取图像并将其放在我的首页上? Thank you in advance. 先感谢您。

Use XKCD's official API to do this.. 使用XKCD的官方API来做到这一点..

The following link will return a JSON will the url to today's comic 以下链接将返回一个JSON将url改为今天的漫画

http://xkcd.com/info.0.json http://xkcd.com/info.0.json

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM