changing to 500 listings per query

This commit is contained in:
Kadir 2024-04-01 20:28:15 +02:00
parent 7ce54a01bd
commit b16fee0648
2 changed files with 6 additions and 5 deletions

View file

@ -9,7 +9,7 @@ districts = get_districts()
for district, locid in districts.items():
print("#### District:", district)
for i in range(1, 41):
for i in [1, 2]:
try:
d = listing_query(
page=i,
@ -19,6 +19,7 @@ for district, locid in districts.items():
min_price=0,
max_price=800000,
location_id=locid,
page_size=500,
)
except Exception as e:
print(e)
@ -35,4 +36,4 @@ for district, locid in districts.items():
listing = Listing(identifier)
with open(listing.path_listing_json(), "w") as f:
json.dump(property, f)
print() # break line as we used end=, above.
print() # break line as we used end=, above.