I
I
Ivan_00072018-07-13 10:13:54
PHP
Ivan_0007, 2018-07-13 10:13:54

Problem with parsing a phone number on the avito website?

I am making an ad parser with avito. There was a problem parsing a phone number. The layout is as follows: after pressing the "call" button, avito sends a get request of this type:

https://m.avito.ru/voronezh/predlozheniya_uslug/el...

where searchHash is the unique "key" of the request. As I understand it, it is generated through a js script. The question is: how to parse a js variable with a searchHash value when parsing? I use phpQuery for parsing. I also wanted to ask if there are other ways to find out the searchHash value? I will be very grateful for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-07-13
@webinar

I am making an ad parser with avito.

What for? They also have api:
https://api.avito.ru/docs/api.html#tag/Item

E
Evgen, 2018-08-10
@Verz1Lka

You can also write on scrapy.
And you can do without tesseract)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question