flickr.com .any way to download from this site..help please

Discuss how to download pictures from websites using PicaLoader.
(NO adult contents and advertisement please.)
Post Reply
roopam005
Posts: 36
Joined: Sun Oct 17, 2004 12:16 pm

flickr.com .any way to download from this site..help please

Post by roopam005 »

www.flickr.com/photos/tags/.....

picaloader downloadd lots & lots of webpages from this site but not a single photo.......can be any missing setting??? please help.
roopam
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post by KoalaBear »

Now PL v1.53 works.
For example, we want download all pics under tag "baby", so we look at http://www.flickr.com/photos/tags/baby with IE, wooo it have 1380000+ pics, so we just download the first 5 pages to have a look:
Start URL:http://www.flickr.com/photos/tags/baby/?page=[1-5]
We only want the jpg files, so select All JPG Pictures from Picture filter profile.
And the pic's page we want just at the index page's next level, so select This page and 1 level(s) from Followed links.
We found the all pic's page just like this: http://www.flickr.com/photos/obsession88/1662464712/, all with /(lage number)/ at tail, so we add Page URL Include Filters: /\d+/$
The thumbnail pics with _t.jpg or _s.jpg at tail, and we needn't site's icons, so add Picture URL Exclude Filters: _t\.jpg$;_s\.jpg$;icons/

OK.
Attachments
Baby
Baby
baby.jpg (64.24 KiB) Viewed 1703 times
roopam005
Posts: 36
Joined: Sun Oct 17, 2004 12:16 pm

Post by roopam005 »

koala bear this downloads small sized images only... waht if i want to downlaod original sized images..???
roopam
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post by KoalaBear »

It's not "small" size pics, it "Medium" size pics, Flickr show you medium size pics as default.

If you also wanna download the "Large" pics, you can try to change Page URL Include Filters to /\d+/$;/\d+/sizes/o/$;/\d+/sizes/l/$
and change Followed links to This page and 2 levels
check attached pic.
Attachments
flikr.jpg
flikr.jpg (63.86 KiB) Viewed 1397 times
roopam0052
Posts: 1
Joined: Wed Feb 06, 2008 4:34 pm

Post by roopam0052 »

some mistake is there... its still downloading imgages with resolution of 500x333 pixels while original images are 1600x1200 and large sized are of 1024x800 like... if it is happening with other people also, it need some correction..... koalabear kindly have a look over it
roopam005
Posts: 36
Joined: Sun Oct 17, 2004 12:16 pm

Post by roopam005 »

kindly help me solving my query
roopam
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post by KoalaBear »

seems like it's a impossible mission for a auto downloader, but now, we have HTML Parser Script:)
For only download the biggest pics:

Start URL:http://www.flickr.com/photos/tags/baby/?page=[1-5]
HTML Parser Script:

if (HTML.Level==0) then
for u in string.gmatch(HTML.Content,'pc_t"><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,'button_bar_notext"><a href=%b""');
if (s1 and e1) then
local url2='http://www.flickr.com' .. string.sub(HTML.Content,s1+28,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.plt
click main menu-&gt;Task-&gt;Import Tasks to import this task to your own project.
(9.93 KiB) Downloaded 48 times
roopam005
Posts: 36
Joined: Sun Oct 17, 2004 12:16 pm

are this settings correct ???

Post by roopam005 »

koalabear.. suppose i want to downlaod largest pics of japan tag....are these settings correct..???

Image
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post by KoalaBear »

please download the attached flickr.plt file in my privous post, then select main menu->Task->Import Task(s) to import it into your project, then change the start URL.
roopam005
Posts: 36
Joined: Sun Oct 17, 2004 12:16 pm

Post by roopam005 »

no koala ..... no luck with this also... i am doing some mistake certainly.... please check my settings.. please....

i did what u told....

a started a new project....
initially.. selected...standard project.. and original filename...

i didn't craeted new task yet..

i imported fickr.plt file...
now i changed the starting URL...
i did not put anything in page url--exclude/include or picture URL exclude/ include boxes....

so my settings are likel this:




Image

now pls tell me where is mistake....
User avatar
KoalaBear
Posts: 325
Joined: Wed Sep 24, 2003 5:27 pm

Post by KoalaBear »

the site structure changed, so we have to change our script to this:

if (HTML.Level==0) then
for u in string.gmatch(HTML.Content,'pc_t"><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;


I attached a new plt file, you can delete the old task and import this one.
Attachments
flickr.plt
(9.93 KiB) Downloaded 61 times
roopam005
Posts: 36
Joined: Sun Oct 17, 2004 12:16 pm

Post by roopam005 »

phewwwwwwwwww

finally it worked.....

thanks o lot to koalabear
roopam
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