2 Commits
Author SHA1 Message Date
Igor VolochayandGitHub 1ade21873f Merge pull request #2 from IgorVolochay/image-installer-editing
🖼️ Update SomePerson pars
2022-10-08 21:16:22 +03:00
Igor Volochay 7df1129206 🖼️ Update SomePerson pars 2022-10-08 21:11:14 +03:00
@@ -1,16 +1,11 @@
import requests
def pars_person():
for i in range(100):
for i in range(1):
img_data = requests.get("https://thispersondoesnotexist.com/image").content
if len(str(i)) == 1:
c = "00" + str(i)
elif len(str(i)) == 2:
c = "0" + str(i)
else:
c = str(i)
with open(f'SomePerson_{c}.jpg', 'wb') as handler:
with open(f'SomePerson_{i}.jpg', 'wb') as handler:
handler.write(img_data)
if __name__ == '__main__':
pars_person()
pars_person()