From 4ccbecfb65ac356f07540eae49347debb5ea0c98 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 25 Nov 2018 18:40:59 +0100 Subject: start/end --- scrape-codex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [] -- cgit v1.2.3-70-g09d2