dtrungtin / actor-airbnb-scraper

Airbnb Scraper actor is designed to extract most of publicly available data for home listings
https://apify.com/dtrungtin/airbnb-scraper
27 stars 22 forks source link

Fix/pricing #44

Closed lhotanok closed 2 years ago

lhotanok commented 2 years ago

Fixes pricing extraction from API endpoint: https://api.airbnb.com/v2/pdp_listing_booking_details.

Changelog

Current pricing

I extended pricing value with nights count, total price and the individual price items such as accommodation, discount or taxes (they're part of the Airbnb UI).

"pricing": {
  "rate": {
    "amount": 120.26,
    "amountFormatted": "$120.26",
    "currency": "USD",
    "isMicrosAccuracy": false
  },
    "rateType": "nightly",
    "nights": 27,
    "totalPrice": {
      "amount": 3247,
      "amountFormatted": "$3,247",
      "accommodation": 3078,
      "discount": 308,
      "cleaningFee": 75,
      "guestFee": 402,
      "currency": "USD"
  }
}
lhotanok commented 2 years ago

Thanks for the review @OlehVeselov92 and @metalwarrior665!