Похожие чаты

Why am I getting download the same file inside while

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

1 ответов

6 просмотров

you never modified href, so you always download the same content

Похожие вопросы

Обсуждают сегодня

Карта сайта