From 7ce54a01bd7517b486351335a7130ae6a40bc023 Mon Sep 17 00:00:00 2001 From: Kadir Date: Mon, 1 Apr 2024 15:26:34 +0200 Subject: [PATCH] removing download of the normal images.. I dont use them --- crawler/3_dump_images.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crawler/3_dump_images.py b/crawler/3_dump_images.py index 17244c0..8e84217 100644 --- a/crawler/3_dump_images.py +++ b/crawler/3_dump_images.py @@ -7,15 +7,15 @@ for listing in tqdm(Listing.get_all_listings()): with open(listing.path_detail_json()) as f: detail = json.load(f) - for photo in detail["property"]["photos"]: - url = photo["maxSizeUrl"] - picname = url.split("/")[-1] - order = photo["order"] - p = listing.path_pic_file(order, picname) - if p.exists(): - continue - tqdm.write(str(p)) - urlretrieve(url, p) + # for photo in detail["property"]["photos"]: + # url = photo["maxSizeUrl"] + # picname = url.split("/")[-1] + # order = photo["order"] + # p = listing.path_pic_file(order, picname) + # if p.exists(): + # continue + # tqdm.write(str(p)) + # urlretrieve(url, p) for photo in detail["property"]["floorplans"]: url = photo["url"]