Przeglądaj źródła

Update stale Airbnb GQL hashes and client version

StayHostingDetailsQuery and ViaductGetThreadAndDataQuery hashes rotated;
X-Client-Version bumped. Detected via har_audit.py against 2026-07-09 HAR.
ZiB 4 miesięcy temu
rodzic
commit
b952f2af74
2 zmienionych plików z 6 dodań i 6 usunięć
  1. 3 3
      room_cal/service_api/_airbnb.py
  2. 3 3
      scripts/har_audit.py

+ 3 - 3
room_cal/service_api/_airbnb.py

@@ -45,15 +45,15 @@ class AirbnbData:
 
 
 _BASE = 'https://www.airbnb.com/api/v3'
 _BASE = 'https://www.airbnb.com/api/v3'
 _API_KEY = 'd306zoyjsyarp7ifhu67rjxn52tv0t20'
 _API_KEY = 'd306zoyjsyarp7ifhu67rjxn52tv0t20'
-_CLIENT_VERSION = 'a23d11f14e272d7560ba7132ef59139d89b26689'
+_CLIENT_VERSION = '4e93a4878415297ab95d22665c666b6602dcfcbb'
 _HASHES = {
 _HASHES = {
   'getDLSHostCalendar':               '048e22675ffa53121628d2d07b519b9b71f5dab342a1ceb75aa72d8814a00ea7',
   'getDLSHostCalendar':               '048e22675ffa53121628d2d07b519b9b71f5dab342a1ceb75aa72d8814a00ea7',
   'EditPanelPricingSettingsMutation': 'e27fed4f08dd4ab4c0267c5d6c0a7e4920730deadf48f92feba9b0d08befafa4',
   'EditPanelPricingSettingsMutation': 'e27fed4f08dd4ab4c0267c5d6c0a7e4920730deadf48f92feba9b0d08befafa4',
   'EditPanelAvailabilityMutation':    '2e056e7f98f8dc410a294c649adf719452980eb4d8ea95540fb1297af2637f67',
   'EditPanelAvailabilityMutation':    '2e056e7f98f8dc410a294c649adf719452980eb4d8ea95540fb1297af2637f67',
-  'StayHostingDetailsQuery':          '1e81282ae4de44e05bc8b776456644efd4ebcd676451ce7f6c3c5757a1057e02',
+  'StayHostingDetailsQuery':          '5d3e94e76186b839be544fc77e5f2fcac0b8d7639c3da16941b89cda5ee03ed9',
   'getNightlyPriceTips':              '07538bf1a5afc8171f1e7443f0007d7f020142fc7ab60df065e7e1edd1a0b29f',
   'getNightlyPriceTips':              '07538bf1a5afc8171f1e7443f0007d7f020142fc7ab60df065e7e1edd1a0b29f',
   'HostCalendarListingEventsQuery':   '8bfe5f5572a25fdaff5b5790604e1de3aec5f37731fc505684022d590d06e0a8',
   'HostCalendarListingEventsQuery':   '8bfe5f5572a25fdaff5b5790604e1de3aec5f37731fc505684022d590d06e0a8',
-  'ViaductGetThreadAndDataQuery':     'c6aff32757966df45d73811219d4f3a57ae7cc9e047b39bb9ba396cd0c09defa',
+  'ViaductGetThreadAndDataQuery':     'dd7478b376ad0a9709c7201b7e43cf402df011ec9d2fe4c1dff2ac418bcd9fb3',
   'CreateBulkMessagesMutation':       '94ac2c4bd07edace539dbf2b9665d9030b6dee479db345ba8a8bbc234b3bbfa3',
   'CreateBulkMessagesMutation':       '94ac2c4bd07edace539dbf2b9665d9030b6dee479db345ba8a8bbc234b3bbfa3',
 }
 }
 
 

+ 3 - 3
scripts/har_audit.py

@@ -22,7 +22,7 @@ from pathlib import Path
 
 
 _AIRBNB_DOMAIN = 'www.airbnb.com'
 _AIRBNB_DOMAIN = 'www.airbnb.com'
 _AIRBNB_API_KEY = 'd306zoyjsyarp7ifhu67rjxn52tv0t20'
 _AIRBNB_API_KEY = 'd306zoyjsyarp7ifhu67rjxn52tv0t20'
-_AIRBNB_CLIENT_VERSION = 'a23d11f14e272d7560ba7132ef59139d89b26689'
+_AIRBNB_CLIENT_VERSION = '4e93a4878415297ab95d22665c666b6602dcfcbb'
 
 
 _AIRBNB_OPS: dict[str, dict] = {
 _AIRBNB_OPS: dict[str, dict] = {
   'getDLSHostCalendar': {
   'getDLSHostCalendar': {
@@ -38,7 +38,7 @@ _AIRBNB_OPS: dict[str, dict] = {
     'hint': 'block or unblock a date in the multicalendar',
     'hint': 'block or unblock a date in the multicalendar',
   },
   },
   'StayHostingDetailsQuery': {
   'StayHostingDetailsQuery': {
-    'hash': '1e81282ae4de44e05bc8b776456644efd4ebcd676451ce7f6c3c5757a1057e02',
+    'hash': '5d3e94e76186b839be544fc77e5f2fcac0b8d7639c3da16941b89cda5ee03ed9',
     'hint': 'open any reservation detail page',
     'hint': 'open any reservation detail page',
   },
   },
   'getNightlyPriceTips': {
   'getNightlyPriceTips': {
@@ -50,7 +50,7 @@ _AIRBNB_OPS: dict[str, dict] = {
     'hint': 'load the multicalendar page (fires automatically)',
     'hint': 'load the multicalendar page (fires automatically)',
   },
   },
   'ViaductGetThreadAndDataQuery': {
   'ViaductGetThreadAndDataQuery': {
-    'hash': 'c6aff32757966df45d73811219d4f3a57ae7cc9e047b39bb9ba396cd0c09defa',
+    'hash': 'dd7478b376ad0a9709c7201b7e43cf402df011ec9d2fe4c1dff2ac418bcd9fb3',
     'hint': 'open any guest message thread',
     'hint': 'open any guest message thread',
   },
   },
   'CreateBulkMessagesMutation': {
   'CreateBulkMessagesMutation': {