Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1) Schoolchildren don’t go to school anyway, hire them for a couple of bucks, let them click.
2) Another option is to manually reprint the numbers from the pictures.
3) Well, if you are a very cool programmer, dig into js, it’s all business there, send a get request to the address
https://www.avito.ru/items/phone/ad_idwith parameters:
import requests
import base64
params = { 'pkey':'dfed69290bc453b834e2e0e2f16bf630', # Осталось узнать, как генерируется это значение!
'vsrc':'r',
'searchHash':'ttv948zc8v4kg0oc4k0o8wok04w8ook' # И это тоже!
}
url = 'https://www.avito.ru/items/phone/1315030387'
response = requests.get(url,params=params)
with open("imageToSave.png", "wb") as fh:
fh.write(base64.decodebytes(response.text[34:-2].encode()))
On the mobile version, the phone number is issued directly, track where it is downloaded from and knock there with the necessary parameters. Or, download the picture with the number from the PC version, and then there are two options to choose from:
1. Send the picture for recognition to any anti-captcha service
2. Write a lib for recognition, if you know how to work with arrays, nothing complicated
An example of a script for recognizing numbers from picture.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question