Closed herbertgroff closed 4 years ago
Yeah. So this is coming from this line of code:
Looks like there must be some exposes on the page you're looking at that don't have a 'monthlyPrice' value. What I see in the elements on that page is:
@id: "65109297"
@xsi.type: "search:ApartmentRent"
address: {street: "Klingenburger Str.", houseNumber: "2d", postcode: "12555", city: "Berlin", quarter: "Köpenick (Köpenick)", …}
balcony: "true"
builtInKitchen: "true"
calculatedPrice: {value: 1690, currency: "EUR", marketingType: "BUDGET_RENT", priceIntervalType: "MONTH", rentScope: "WARM_RENT"}
companyWideCustomerId: "001.3112839"
contactDetails: {salutation: "NO_SALUTATION", firstname: "Hausverwaltung", lastname: "Rösler", phoneNumber: "030 56293380", company: "Rösler Hausverwaltung"}
energyPerformanceCertificate: "true"
floorplan: "true"
galleryAttachments: {attachment: Array(8)}
garden: "true"
listingType: "L"
livingSpace: 139
numberOfRooms: 5
price: {value: 1390, currency: "EUR", marketingType: "RENT", priceIntervalType: "MONTH"}
privateOffer: "false"
realtorCompanyName: "Rösler Hausverwaltung"
spotlightListing: "false"
streamingVideo: "false"
title: "3 Zimmer +2 Hobbyräume Maisonette Wohnung in Köpenick"
titlePicture: {@xlink.href: "https://pictures.immobilienscout24.de/listings/4db…size/60x60%3E/extent/60x60/format/webp/quality/50", @id: "65109297", @modification: "2020-10-19T18:22:09.499+02:00", @creation: "2020-10-19T18:22:09.499+02:00", @publishDate: "2020-10-19T18:22:09.499+02:00", …}
virtualTour: {url: "https://virtualtours.immobilienscout24.de/portal/tour/1131082", previewUrls: {…}}
virtualTourAvailable: "true"
So the monthlyPrice property is indeed missing. It might be that ["price"]["value"] is a better source for that data. How are your coding skills? You want to try changing that?
That should be fixed now in #86. Can you pull the latest code and retry?
had the same issue this afternoon, your fix did the job. thanks!
Works, wunderbar, thanks!
Hi, first of all: thanks for writing this awesome bot!!
It was running yesterday, but seems to crash now with following error on URL
error log
Any idea? Thanks!