I have an idea to automatically fill out a form indicating the currency on booking.com , because the course is constantly jumping, and putting it manually every day is stupid, I decided to automate it.

The logic is as follows: (PHP language) Parsing NBRB price data => entering a rate into the database mysql => connecting to the booking.com control panel via cURL (login form / username) => redirect to the $ filling rate page => receiving data forms => get the exchange rate from the database mysql => fill in the form on booking.com => press the button input => status OK.

And now the question is, I think correctly, and is it possible to implement it through cURL ?

  • Are you talking about an extranet or a regular user interface? - ExileeD
  • @ExileeD, Yes, sorry, I forgot to say, I’m talking about the panel, which is an extranet, there is filling in the exchange rate in one section, and filling is done through the usual input form, and applied via the button - BloodKnight
  • You can implement. But you need to log in to write cookies to a file. And with these cookies, edit the course. Through the Kurl in booking it is too heavy to log in (they require you to confirm a new PC when entering). If it's not a secret, why do you constantly change the course? make the hotel currency in $ and booking itself will convert from other currencies - ExileeD
  • @ExileeD, I understand, but if you once make authorization from an IP address (new PC), then they will no longer require confirmation? About cookies, yes, I understood that the exchange rate must be constantly changed because the exchange rate jumps every day, and it turns out to be a school in currency, i.e. you need to adjust the price of a room in Belarusian rubles (for example, 750,000 thousand), and $ 37.5 was set at the booking.co.uk, the rate has grown and the difference is already getting, for example, not 750,000 rubles, but already 730,000 rubles. per room, but this is better to avoid. But generally it is possible, as I understand it? - BloodKnight
  • They are most likely tied to the device. I did not notice the binding to ip. Our hotel currency is Euro. And we withdraw money in euros, and already booking itself follows the exchange rate of other currencies, and converts it itself. - ExileeD

0