summaryrefslogtreecommitdiff
path: root/scrape-codex.py
diff options
context:
space:
mode:
Diffstat (limited to 'scrape-codex.py')
-rw-r--r--scrape-codex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scrape-codex.py b/scrape-codex.py
index b299df6..6a7f9b9 100644
--- a/scrape-codex.py
+++ b/scrape-codex.py
@@ -61,11 +61,11 @@ def load_image(fn):
# Fetch all the tiles from a tile server and then compose them into a single image
def grab(s, n):
+ page = "{:03d}{}".format(n, s)
out_fn = "./{}/{}/{}_{}.jpg".format(TAG, ZOOM, page, ZOOM)
if os.path.exists(out_fn):
return
- page = "{:03d}{}".format(n, s)
print("Fetching {}...".format(page))
os.makedirs("./{}/{}/{}".format(TAG, ZOOM, page), exist_ok=True)
dataset = []