loop ?
while counter < self.max_results:
print(href)
r = requests.get(href)
local_file = open('{}/testcase-{:06d}.{}'.format(self.OUTPUT_DIR, counter, self.extension), 'wb')
local_file.write(r.content)
counter += 1
print("Total Files {} downloaded".format(counter))
https://dpaste.org/d7ho
you never modified href, so you always download the same content
Обсуждают сегодня