removing download of the normal images.. I dont use them
This commit is contained in:
parent
c8c53b8696
commit
7ce54a01bd
1 changed files with 9 additions and 9 deletions
|
|
@ -7,15 +7,15 @@ for listing in tqdm(Listing.get_all_listings()):
|
||||||
with open(listing.path_detail_json()) as f:
|
with open(listing.path_detail_json()) as f:
|
||||||
detail = json.load(f)
|
detail = json.load(f)
|
||||||
|
|
||||||
for photo in detail["property"]["photos"]:
|
# for photo in detail["property"]["photos"]:
|
||||||
url = photo["maxSizeUrl"]
|
# url = photo["maxSizeUrl"]
|
||||||
picname = url.split("/")[-1]
|
# picname = url.split("/")[-1]
|
||||||
order = photo["order"]
|
# order = photo["order"]
|
||||||
p = listing.path_pic_file(order, picname)
|
# p = listing.path_pic_file(order, picname)
|
||||||
if p.exists():
|
# if p.exists():
|
||||||
continue
|
# continue
|
||||||
tqdm.write(str(p))
|
# tqdm.write(str(p))
|
||||||
urlretrieve(url, p)
|
# urlretrieve(url, p)
|
||||||
|
|
||||||
for photo in detail["property"]["floorplans"]:
|
for photo in detail["property"]["floorplans"]:
|
||||||
url = photo["url"]
|
url = photo["url"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue