Technical support specialist Denis Polovian created a service that informs about the overpayment for McDonald’s delivery from Bolt and Glovo.
«So I created a service where it will be convenient to view. There is an opportunity to view prices for individual items and create your own basket, which will calculate the total benefit,» he said .
The specialist spoke about the idea of the project and its implementation.
«At first, the question arose of where to get the prices. For Glovo, it turned out to write a script that parses page elements and collects the information I needed. It was my first time, so it took me some time to figure everything out, but with AI it was not difficult. For Bolt, prices are generated differently and cannot be collected from the page. But I went into the network and found everything there. Here, a get request was enough. Thus, the issue of prices with deliveries was resolved. But for official prices, I did not find any solution except to write them out manually. Yes, there is a pdf with prices even for this year and AI extracts them well, but there is still a difference of 5-10 UAH, which is critical for me. There are no current prices on the site, they only exist in the application. Therefore, I am very grateful to those who helped me write everything out. After all, writing down 160 prices and copying links to the same number of photos would not be easy,» notes Denis.
According to the structure, the specialist found that there is a McDonald’s price file, which does not change, and two delivery files, which can be updated at any time by executing a script. The history of price changes is also stored with each launch. Therefore, in addition to the current ones, there are also past results with the date indicated. «I store this information in a separate repository, which the frontend uses, making a get request to it,» the IT specialist explains.
The most difficult part of the implementation, according to Denis, was to automate the script that makes one price file from different files as much as possible. «After all, many items have different names, printings, English letters instead of Ukrainian, etc. However, we managed to figure it out and get the final file, where everything will be ready without any manual work,» Denis notes.
Prices are current for Kyiv as of November.
Currently, the service does not offer breakfast and not all items are sold for delivery, so they may not be available, says the IT expert. Delivery and a service fee must also be added to the price.
Ukrainian IT professional develops «Hotline for offline stores». What is the idea of the startup Savket and how close is its founder to implementing it?
Тут мав бути мем що сайт писав бенкендер😁