Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This beautiful boy periodically updates his blog with pics. I want to automate the process of downloading his pics to my computer.

Let's say I want to download the 3 images from this entry in his blog.

Instead of right-clicking on each image, I would like to use a more automatic process.

httrack seems like the thing to use. (Let me know if there is anything else.)

It's a little tricky, because the address of the pics I'm trying to get are totally different. For example, the first of the three pics is located at http://stat.ameba.jp/user_images/20120120/20/maofish/3c/99/j/o0480063311745603530.jpg

I tried the following command:

httrack http://ameblo.jp/maofish/entry-11141191034.html -* +stat.ameba.jp/* -*.html -*.txt +*.jpg

It gets the files I'm looking for, but it also get some other stuff I'm not. The images are hard to find because when they are downloaded they are nested several directories deep.

What are the parameters to give to httrack to just get the images I'm interested in, and save them to the current directory so I don't have to search too hard for them? If there is a better tool to use, what is it?

share|improve this question
    
I don't know if this will help but it might. The key in this situation was to wget the main html page, then get/filter/grep-command the image URLs, then amend them to make the actual ones, wget those actual image URLs. superuser.com/questions/351424/… That one might've had like 3 "albums" and 3 "main" html pages that had links to all images, then just had to adjust those URLs and download them. –  barlop Jan 20 '12 at 17:34
    
do you have a few main pages or a main page that links to all of them? I'm not looking at the "beautiful boy" though, sorry! –  barlop Jan 20 '12 at 17:37
    
I think the main page is the first link in my post. That page will display the newest entry, and from there a person can go back to read previous entries. –  tony_sid Jan 20 '12 at 19:18
    
well look man, here's an example with a tree so not as bad as looking at a "beautiful boy". ameblo.jp/d-out-ko-ki above those 3 pictures there is a link ameblo.jp/d-out-ko-ki/imagelist.html see if you can then you see you when you click those arrows you get a new html page with a list of images.. you want each of those html page URLs listed in one file, notice each year has a pattern ameblo.jp/d-out-ko-ki/imagelist-201012.html <-- 201012 is december 2010. Then you have all the ones for 2011 that is imagelist-201101.html to imagelist-201112.html then you have 2012.. –  barlop Jan 21 '12 at 1:27
    
so you get a list of all those .html URLs in one file. Then you do for /f %f in (thefile) do type %f >>thefile2 <-- that puts all the HTML from all the files appended into one file called thefile2. Then you filter out the image URLs you want. Then you just convert something like imgstat.ameba.jp/view/d/90/stat001.ameba.jp/user_images/… (which is a thumbnail) into the big version stat.ameba.jp/user_images/20111230/23/d-out-ko-ki/37/01/j/… –  barlop Jan 21 '12 at 1:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.