Naruto图片下载
·
很傻,很笨,但很有效的方法。
网址 :wall.alphacoders.com
function downPic()
% 火影忍者图片下载
ul1='******';
for i=1:30
ul = [ul1,num2str(i)];
html=webread(ul);
p1=strfind(html,'<picture>');
p2=strfind(html,'</picture>');
for j =1:length(p1)
p=html(p1(j):p2(j));
http1=strfind(p,'https');
http2=strfind(p,'.webp');
http=p(http1(1):http2(1));
n1 = strfind(http,'/');
n2 = strfind(http,'-');
n = [http(1:n1(length(n1))),http(n2(length(n2))+1:length(http))];
system(['wget ',n,'jpg']);
system(['wget ',n,'png']);
end
end
end
更多推荐
已为社区贡献1条内容
所有评论(0)