2024-10-19 20:25:30 +02:00
|
|
|
import Data_Analysis as DA
|
|
|
|
import csv
|
|
|
|
|
|
|
|
propIds = DA.getuniquePropIdFromDB()
|
|
|
|
|
|
|
|
lostProperties = []
|
|
|
|
|
|
|
|
for propId in propIds:
|
|
|
|
print(propId)
|
|
|
|
scrapeDates, calendarData = DA.getDataFromDB(propId)
|
|
|
|
if DA.checkForLostProprty(calendarData):
|
|
|
|
lostProperties.append(propId)
|
|
|
|
|
|
|
|
print(f"{len(lostProperties)} of {len(propIds)} properties are lost")
|
|
|
|
|
|
|
|
with open('results/allLostProperties', 'w') as f:
|
|
|
|
write = csv.writer(f)
|
|
|
|
write.writerow(lostProperties)
|
|
|
|
|
2024-10-24 20:04:22 +02:00
|
|
|
#Output: 221 of 1552 properties were lost at some point
|