summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-25 18:40:59 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-25 18:40:59 +0100
commit4ccbecfb65ac356f07540eae49347debb5ea0c98 (patch)
treec14b2349e9868f6270377f45b9f1bcc3f52a5a06
parent068961913177924dd01c4cfa49416babfcdd1251 (diff)
start/end
-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 = []