V
V
ViruS20482022-04-08 11:29:54
Android
ViruS2048, 2022-04-08 11:29:54

How to receive data from a mobile application and send requests back using Python?

There is an application on android, installed on a Nox emulator on a PC, the application has an in-game market, it needs to be updated by swipe down, sorted by the lowest price, you need to write a bot / script / program that will constantly update this market even when a product appears below a certain price - redeem it, done in 2 clicks. I wrote a simple script using python, updates and clicks using pyautogui, then as soon as the market is updated, I screen the price of the cheapest product, recognize the text using a tesseract, compare it with the price I need, and if it turns out to be cheaper, then I click to buy. It seems that everything is cool and rosy, but someone has a script that is clearly faster. When I click buy, it says that the product is no longer available. The question is, how can you optimize all these actions, so as not to poke or screen anything? There is an option in my head to somehow send an update request directly to the server through python and analyze the received data, look for new positions and compare, and if such a position is found, send a purchase request immediately. But there are a few nuances, the application does not have a public api, and I don’t really understand how to get the server address, and whether it’s possible to receive data at all with a request, and I don’t really understand how you can redeem a position using a request, because it is not tied to an account, but you need to for this particular account to buy the product. Somehow, I will be grateful if you tell me your thoughts on this matter and where to dig in search of information, thanks. send a purchase request immediately. But there are a few nuances, the application does not have a public api, and I don’t really understand how to get the server address, and whether it’s possible to receive data with a request at all, and I don’t really understand how you can redeem a position using a request, because it is not tied to an account, but you need to for this particular account to buy the product. Somehow, I will be grateful if you tell me your thoughts on this matter and where to dig in search of information, thanks. send a purchase request immediately. But there are a few nuances, the application does not have a public api, and I don’t really understand how to get the server address, and whether it’s possible to receive data with a request at all, and I don’t really understand how you can redeem a position using a request, because it is not tied to an account, but you need to for this particular account to buy the product. Somehow, I will be grateful if you tell me your thoughts on this matter and where to dig in search of information, thanks.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question