how to download from a particular album from flickr??

Discuss how to download pictures from websites using PicaLoader.
(NO adult contents and advertisement please.)
Post Reply
nandi
Posts: 11
Joined: Sun Mar 23, 2008 9:00 am

how to download from a particular album from flickr??

Post 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
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post 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;
Attachments
flickr_usr.plt
main menu-&gt;Tasks-&gt;Import Task
(9.93 KiB) Downloaded 29 times
nandi
Posts: 11
Joined: Sun Mar 23, 2008 9:00 am

Post 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....
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post 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;
Attachments
flickr-set.plt
(9.93 KiB) Downloaded 28 times
nandi
Posts: 11
Joined: Sun Mar 23, 2008 9:00 am

Post by nandi »

Thanks a lot man really appreciate that.... :lol:
nandi
Posts: 11
Joined: Sun Mar 23, 2008 9:00 am

Post 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???
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post 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;
Attachments
flickr-set.plt
(9.93 KiB) Downloaded 15 times
User avatar
systemax
Posts: 27
Joined: Wed Aug 22, 2007 12:21 pm

Post 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
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post by KoalaBear »

All about download original size pics of Flickr migrated to:
Flickr Downloader
:)
Post Reply