old stocks direct scrape #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://app.mews.com/distributor/d0b39796-92ee-4664-bb50-aa4d00eb0c0c
Implemented in commit
c2e1a97as themewsprofile.Approach: httpx against the Mews Booking Engine v1 API (
api.mews.com/api/bookingEngine/v1/). No registration required — uses the same client identity as the public widget (Mews Distributor 5745.0.0) with a computed session token. Two API calls per scrape run:getAvailabilityonce for 90 days (returns room counts per category), thengetPricingper bookable date.Room quantity: yes —
availabilities[]count per room category from the availability endpoint.Prices: proper net/gross split (
amountBeforeTax= net,amountAfterTax= gross incl. VAT).Timezone: reads
ianaTimeZoneIdentifierfrom the property config, so BST/GMT handled correctly automatically.Config param: only needs the UUID from the
/distributor/URL —enterpriseId,serviceId, and age category are fetched and cached on first call.