PLT0160deviantarthttp://browse.deviantart.com/photography/people/?order=24deviantartfc\d+\.deviantart\.com;/download/ÿÿÿÿif (HTML.Level==0) then local s,e=string.find(HTML.Url,'[%w_-]+%.deviantart%.com/gallery'); if (s and e) then local uid=string.sub(HTML.Url,s,e-23); local url='http://www.deviantart.com/global/difi/?c%5B%5D=Resources;htmlFromQuery;gallery%3A' .. uid ..'%20sort%3Atime,0,24,thumb150,artist%3A0&t=json'; AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,1); else s,e=string.find(HTML.Url,'[%w_-]+%.deviantart%.com/favourites/%?%d+'); if (s and e) then local t=string.find(HTML.Url,'/favourites/'); local uname=string.sub(HTML.Url,s,t-16); local uid=string.sub(HTML.Url,t+13,e); local url='http://www.deviantart.com/global/difi/?c%5B%5D=Resources;htmlFromQuery;favby%3A' .. uname .. '/' .. uid ..',0,24,thumb150,&t=page&ad_frame=atf_right_300x250&ad_keys=Section%3Ausercollections&ad_buster=1225936155234&ad_mature=0&nostat=1'; AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,1); else s,e=string.find(HTML.Content,'class="t" href=%b""'); while (s and e) do local url=string.sub(HTML.Content,s+16,e-1); AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,2); s,e=string.find(HTML.Content,'class="t" href=%b""',e+1); end; if (string.find(HTML.Content,'Next Page')) then s,e=string.find(HTML.Url,'offset='); if (s and e) then local offset=24+string.sub(HTML.Url,e+1,-1); local url=string.sub(HTML.Url,1,e)..offset; AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,0); else AddLink(HTML.Url..'&offset=24',HTML.Url,HTML.Title,'',HTML.TaskID,0); end; end; end; end; elseif (HTML.Level==1) then local url=''; local s,e=string.find(HTML.Content,'"more":true'); if (s and e) then s,e=string.find(HTML.Url,'%d+,24,thumb150'); if (s and e) then local cur=24 + string.sub(HTML.Url,s,e-12); url=string.sub(HTML.Url,1,s-1) .. cur .. string.sub(HTML.Url,e-11,-1); AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,1); end; end; s,e=string.find(HTML.Content,'',1,true); local e1=e; while (s and e) do if (s and e) then s=string.find(HTML.Content,'http',e+1); if (s) then e=string.find(HTML.Content,'" ',s+5); if (e) then url=string.sub(HTML.Content,s,e-2); url=string.gsub(url,'\\/','/'); AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,2); end; end; end; s,e=string.find(HTML.Content,'',e1+1,true); e1=e; end; elseif (HTML.Level==2) then local s,e=string.find(HTML.Content,'',e+1,true); if (e) then local url=string.sub(HTML.Content,s+9,e-1); if (string.sub(url,-4,-1)=='.jpg') then AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,3); ad=1; end; end; end; if (ad==0) then s,e=string.find(HTML.Content,'fullview'); if (s and e) then s=string.find(HTML.Content,'http',e+1); if (s) then e=string.find(HTML.Content,'"',s+5); if (e) then local url=string.sub(HTML.Content,s,e-1); url=string.gsub(url,'\\/','/'); AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,3); end; end; end; end; end;¸