Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how can you get image from urls that don't exist on the webpage

I am new to automator and don't have experience with scripting could someone please help me with this problem?


Is there a way using automator, to get urls from an image on a webpage then extract all but the image name and format, and concatenate the extracted url with my own extension to get the image. For example:


If these are existing images on a webpage

http://www.example.com/myimages/page1/1.jpg

http://www.example.com/myimages/page1/2.jpg

http://www.example.com/myimages/page1/3.jpg

http://www.example.com/myimages/page1/4.jpg

http://www.example.com/myimages/page1/5.jpg


but there are additional images not displayed on the webpage, but can be displayed if you manually enter a url

http://www.example.com/myimages/page1/6.jpg

http://www.example.com/myimages/page1/7.jpg

http://www.example.com/myimages/page1/8.jpg


is there a way to automate getting image 6, 7, and 8?


I want to take

http://www.example.com/myimages/page1/


and add it to an text file containing my extentions

6.jpg


to get

http://www.example.com/myimages/page1/6.jpg


I am open to any suggestions!!

Mac Pro, OS X Mountain Lion (10.8.3)

Mac Pro, OS X Mountain Lion (10.8.3)

Posted on Jun 3, 2013 2:36 PM

Reply
1 reply

Jun 3, 2013 4:31 PM in response to applehelp001

What you describe is potentially do-able, but you're missng one important piece of information - just how do you know these images exist if you don't have the URLs?


Are you just guessing that the numbers are sequential and that images 6, 7, and 8 exist just because images 1 through 5 do? What about if the numbers are not consecutive? How far do you look ahead? What if they don't follow the pattern at all?


In short, you need to more clearly define the rules of how you determine which URLs to (try to) retrieve. Only then can you formulate any kind of script to automate the process.

how can you get image from urls that don't exist on the webpage

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.