i use this script to download images from the same html page. But if images large enough, this script doesnt download properly – all images are 1,15 Kb and dont display.
How can i fix it? what’s wrong?
i use this script to download images from the same html page. But if
Share
If you download and inspect the HTML in http://tema.ru/travel/new-york.2011.11/, you see things like
So this page is using relative links.
The line
changes
parsedfromto
and then forms the new url with
which sets
urltohttp://tema.ru/IMG_5072.jpgwhich does not exist.The correct url is
http://tema.ru/travel/new-york.2011.11/IMG_5072.jpg.We can form that url with
so try