很傻,很笨,但很有效的方法。

网址 :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

 

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐