| Author |
Message |
|
nandi
|
Post subject: how to download from a particular album from flickr?? Posted: Sun May 18, 2008 10:37 am |
|
Joined: Sun Mar 23, 2008 9:00 am Posts: 13
|
|
 |
|
 |
|
KoalaBear
|
Post subject: Posted: Mon May 19, 2008 6:20 pm |
|
Joined: Wed Sep 24, 2003 5:27 pm Posts: 464
|
|
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: |
File comment: main menu->Tasks->Import Task
flickr_usr.plt [9.93 KiB]
Downloaded 67 times
|
|
|
 |
|
 |
|
nandi
|
Post subject: Posted: Tue May 20, 2008 8:05 am |
|
Joined: Sun Mar 23, 2008 9:00 am Posts: 13
|
|
 |
|
 |
|
KoalaBear
|
Post subject: Posted: Tue May 20, 2008 11:50 am |
|
Joined: Wed Sep 24, 2003 5:27 pm Posts: 464
|
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_photos/sets/72157602611773938/
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;
|
|
 |
|
 |
|
nandi
|
Post subject: Posted: Wed May 21, 2008 7:00 am |
|
Joined: Sun Mar 23, 2008 9:00 am Posts: 13
|
Thanks a lot man really appreciate that.... 
|
|
 |
|
 |
|
nandi
|
Post subject: Posted: Wed May 21, 2008 7:13 am |
|
Joined: Sun Mar 23, 2008 9:00 am Posts: 13
|
|
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???
|
|
 |
|
 |
|
KoalaBear
|
Post subject: Posted: Fri Jun 27, 2008 3:40 pm |
|
Joined: Wed Sep 24, 2003 5:27 pm Posts: 464
|
|
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;
|
|
 |
|
 |
|
systemax
|
Post subject: Posted: Mon Jun 30, 2008 9:07 pm |
|
Joined: Wed Aug 22, 2007 12:21 pm Posts: 59
|
|
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
|
|
 |
|
 |
|
KoalaBear
|
Post subject: Posted: Tue Jul 22, 2008 1:40 am |
|
Joined: Wed Sep 24, 2003 5:27 pm Posts: 464
|
|
 |
|
 |
|