-
Notifications
You must be signed in to change notification settings - Fork 0
Home
QuyetQQ edited this page Jun 22, 2021
·
1 revision
#!/usr/bin/env python import os.path import requests import glob from PIL import Image
url = 'https://storage.googleapis.com/ygoprodeck.com/pics/' listImg = list()
with open ("BuilderDeck.ydk", "r") as myfile: for line in myfile: a = line.strip() if a.isdigit(): listImg.append(a+".jpg") a = url+a+".jpg" filename = a.split('/')[-1] r = requests.get(a, allow_redirects=True) open(filename, 'wb').write(r.content)
x = Image.new( mode = "RGB", size = (width, height) ) for image in listImg: print(image) img = Image.open(image) img.show()