Page 1 of 1

Please help with this site: http://www.fotkin.ru/

Posted: Sat Feb 23, 2008 6:46 pm
by 1-d
Hi, I came across this site the other day and wanted to put PicaLoader to the test.

The strating address is here:
http://www.fotkin.ru/albums/?genre=1&order=add

There are total of 106 pages with 15 thumbnails on each, and when you click on a thumb it takes you to 'preview' page where you click on the preview picture to get the full-size pic open.

My trouble is I can't get PicaLoader to get those fullsize pics no matter what combination of settings I've tried. I've gone so far as to get the preview pics but no further. The fullsize images are in the root of the site's /_imager/oPhoto/ directory but for some reason PicaLoader doesn't see it. The site does not require to login to see the pictures.

I would really appreciate any help on this.

Posted: Sun Feb 24, 2008 1:03 pm
by KoalaBear
Start URL:
http://www.fotkin.ru/albums/?genre=1&order=add&p=[1-106]
Page URL Include Filters:photo=\d+$
Picture URL Include Filters:/oPhoto/
Picture URL Exclude Filters:/preview/;/thumbs/

Posted: Sun Feb 24, 2008 5:06 pm
by 1-d
Thank you for your help KB, but unfortunately it still doesn't work for me. :cry:

I tried running the task both ways, setting up a new task with your suggestions and then downloading & importing the task file. In either case PicaLoader did not grab one picture.

You seem to be the only hope I have, however... Could you look into this one more time, before I give up?

Posted: Sun Feb 24, 2008 5:58 pm
by KoalaBear
try another way: using HTML Parser Script:
Start URL:http://www.fotkin.ru/albums/?genre=1&order=add&p=[1-106]
HTML Parser Script:
if (HTML.Level==0) then
for u in string.gmatch(HTML.Content,'href=%b""') do
local s1,e1=string.find(u,'/albums/preview/%?photo=%d*');
if (s1 and e1) then
local url='http://www.fotkin.ru' .. string.sub(u,s1,e1);
AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,1);
end;
end;
else
for u in string.gmatch(HTML.Content,'href=%b""') do
local s1,e1=string.find(u,'/_imager/oPhoto/.*%.jpg');
if (s1 and e1) then
local url='http://www.fotkin.ru' .. string.sub(u,s1,e1);
local title=HTML.Title;
local s2,e2=string.find(HTML.Content,'"PhotoTitle"%b><');
if (s2 and e2) then
title=string.sub(HTML.Content,s2+13,e2-1);
end;
AddLink(url,HTML.Url,title,'',HTML.TaskID,1);
end;
end;
end;

Posted: Sun Feb 24, 2008 6:31 pm
by 1-d
Worked like a charm! Thank you KB, you are the man! :D