Page 1 of 1

how to download from a particular album from flickr??

Posted: Sun May 18, 2008 10:37 am
by nandi
how to download a particular set or from a particular user from flickr
e.g.

set:
http://www.flickr.com/photos/martins_ph ... 611773938/

or

user:
http://www.flickr.com/photos/martins_photos/

thanks

Posted: Mon May 19, 2008 6:20 pm
by KoalaBear
start Url:http://www.flickr.com/photos/martins_photos/page[1-162]/
picture filter profile:All JPG Pictures
uncheck Support J/VB/Javascript
HTML Parser Script:
if (HTML.Level==0) then
for u in string.gmatch(HTML.Content,'pc_%w"><a href=%b""') do
local url='http://www.flickr.com' .. string.sub(u,16,-2);
AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,1);
end;
else
if (HTML.Level==1) then
local s1,e1=string.find(HTML.Content,'page_p.zoomUrl = %b\'\'');
if (s1 and e1) then
local url2='http://www.flickr.com' .. string.sub(HTML.Content,s1+18,e1-1);
AddLink(url2,HTML.Url,HTML.Title,'',HTML.TaskID,2);
else
local s2,e2=string.find(HTML.Content,'class="photoImgDiv"><img src=%b""');
if (s2 and e2) then
local url3=string.sub(HTML.Content,s2+30,e2-1);
AddLink(url3,HTML.Url,HTML.Title,'',HTML.TaskID,1);
end;
end;
else
if (HTML.Level==2) then
if (string.sub(HTML.Url,-3) == '/o/') then
local s3,e3=string.find(HTML.Content,'<p><img src=%b""');
if (s3 and e3) then
local url4=string.sub(HTML.Content,s3+13,e3-1);
AddLink(url4,HTML.Url,HTML.Title,'',HTML.TaskID,2);
end;
else
local s4,e4=string.find(HTML.Content,'/o/"');
if (s4 and e4) then
local url5=string.sub(HTML.Url,1,-4) .. '/o/';
AddLink(url5,HTML.Url,HTML.Title,'',HTML.TaskID,2);
else
local s5,e5=string.find(HTML.Content,'<p><img src=%b""');
if (s5 and e5) then
local url6=string.sub(HTML.Content,s5+13,e5-1);
AddLink(url6,HTML.Url,HTML.Title,'',HTML.TaskID,2);
end;
end;
end;
end;
end;
end;

Posted: Tue May 20, 2008 8:05 am
by nandi
Thanks a lot man.......i guess this is to download all the pictures from an account....what i have to put if i want to download only a particular set e.g.

http://www.flickr.com/photos/martins_ph ... 611773938/


Thanks once again for the help....

Posted: Tue May 20, 2008 11:50 am
by KoalaBear
nandi wrote:Thanks a lot man.......i guess this is to download all the pictures from an account....what i have to put if i want to download only a particular set e.g.

http://www.flickr.com/photos/martins_ph ... 611773938/


Thanks once again for the help....
start URL:http://www.flickr.com/photos/martins_ph ... 611773938/
Picture filter profile:All JPG Pictures
Page URL Include Filters:/set-\d+/$
Picture URL Exclude Filters:_s\.jpg$
HTML Parser Script:
if (HTML.Level==0) then
DefaultParser(HTML.Content,HTML.Url,HTML.Title,HTML.TaskID,HTML.Level);
else
if (HTML.Level==1) then
local s1,e1=string.find(HTML.Content,'page_p.zoomUrl = %b\'\'');
if (s1 and e1) then
local url2='http://www.flickr.com' .. string.sub(HTML.Content,s1+18,e1-1);
AddLink(url2,HTML.Url,HTML.Title,'',HTML.TaskID,2);
else
local s2,e2=string.find(HTML.Content,'class="photoImgDiv"><img src=%b""');
if (s2 and e2) then
local url3=string.sub(HTML.Content,s2+30,e2-1);
AddLink(url3,HTML.Url,HTML.Title,'',HTML.TaskID,1);
end;
end;
else
if (HTML.Level==2) then
if (string.sub(HTML.Url,-3) == '/o/') then
local s3,e3=string.find(HTML.Content,'<p><img src=%b""');
if (s3 and e3) then
local url4=string.sub(HTML.Content,s3+13,e3-1);
AddLink(url4,HTML.Url,HTML.Title,'',HTML.TaskID,2);
end;
else
local s4,e4=string.find(HTML.Content,'/o/"');
if (s4 and e4) then
local url5=string.sub(HTML.Url,1,-4) .. '/o/';
AddLink(url5,HTML.Url,HTML.Title,'',HTML.TaskID,2);
else
local s5,e5=string.find(HTML.Content,'<p><img src=%b""');
if (s5 and e5) then
local url6=string.sub(HTML.Content,s5+13,e5-1);
AddLink(url6,HTML.Url,HTML.Title,'',HTML.TaskID,2);
end;
end;
end;
end;
end;
end;

Posted: Wed May 21, 2008 7:00 am
by nandi
Thanks a lot man really appreciate that.... :lol:

Posted: Wed May 21, 2008 7:13 am
by nandi
ok that really helped but i can not download the files which are marked only for friend and family,,,,the F&F pictures are visible to me but i can not download them using the pic downloader any way around this???

Posted: Fri Jun 27, 2008 3:40 pm
by KoalaBear
new HTML Parser Script:

if (HTML.Level==0) then
DefaultParser(HTML.Content,HTML.Url,HTML.Title,HTML.TaskID,HTML.Level);
else
if (HTML.Level==1) then
local s1,e1=string.find(HTML.Content,'page_p.zoomUrl = %b\'\'');
local s0,e0=string.find(HTML.Content,'button_zoom');
if (s0 and e0 and s1 and e1) then
local url2='http://www.flickr.com' .. string.sub(HTML.Content,s1+18,e1-1);
AddLink(url2,HTML.Url,HTML.Title,'',HTML.TaskID,2);
else
local s2,e2=string.find(HTML.Content,'class="photoImgDiv">',e1+1,true);
if (s2 and e2) then
s2,e2=string.find(HTML.Content,'<img src=%b""',e2+1);
local url3=string.sub(HTML.Content,s2+10,e2-1);
AddLink(url3,HTML.Url,HTML.Title,'',HTML.TaskID,1);
end;
end;
else
if (HTML.Level==2) then
if (string.sub(HTML.Url,-3) == '/o/') then
local s3,e3=string.find(HTML.Content,'<p><img src=%b""');
if (s3 and e3) then
local url4=string.sub(HTML.Content,s3+13,e3-1);
AddLink(url4,HTML.Url,HTML.Title,'',HTML.TaskID,2);
end;
else
local s4,e4=string.find(HTML.Content,'/o/"');
if (s4 and e4) then
local url5=string.sub(HTML.Url,1,-4) .. '/o/';
AddLink(url5,HTML.Url,HTML.Title,'',HTML.TaskID,2);
else
local s5,e5=string.find(HTML.Content,'<p><img src=%b""');
if (s5 and e5) then
local url6=string.sub(HTML.Content,s5+13,e5-1);
AddLink(url6,HTML.Url,HTML.Title,'',HTML.TaskID,2);
end;
end;
end;
end;
end;
end;

Posted: Mon Jun 30, 2008 9:07 pm
by systemax
Great script KoalaBear - is it possible to have a script that combines the best features of both - what I mean is - Can you create a script that allows for the downloading of a user acct and/or set but also downloads the original size (like you did for tags) instead of the default medium size? That way we could download a set in the original size which would be a great benefit.

Thanks

Posted: Tue Jul 22, 2008 1:40 am
by KoalaBear
All about download original size pics of Flickr migrated to:
Flickr Downloader
:)