View Single Post
Old Jan 21st, 2007, 4:45 PM   #18
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Did the page load correctly or did it timeout? Did the program say the images were being downloaded?

Perhaps if you farmed out the functionality to a method, then you could call it just for page 450. Something like:
python Syntax (Toggle Plain Text)
  1. for i in range(0, 526, 15):
  2. save_images(url % i)
And then if you wanted to check a particular page:
python Syntax (Toggle Plain Text)
  1. save_images(url % 450)
I tested it on 450, and it seems to work fine. Perhaps the page is timing out, or maybe it doesn't like you requesting so many pages so quickly. Perhaps put in a "time.sleep" function at the end of the loop to ensure that it waits a few seconds before the next page.
Arevos is offline   Reply With Quote