D
D
Daniil Sukhikh2021-07-10 14:06:59
PHP
Daniil Sukhikh, 2021-07-10 14:06:59

How to get number from ad on olx?

I want to parse the Olx ads I need and get all the data, including the number. In order to get a number there, you need to be authorized and click on the "Show number" button. I can't find a way to solve these two problems. Firstly, how to log in there, because there is a captcha on the authorization pages, the second question is how do I make the curl script click on the button?

I parse ads with curl and xpath.

I know this is definitely possible because there are several working parsers. In Google, all solutions are outdated, there was an option through the mobile api but it was closed. I can not understand how everyone else is parsing now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
prrrrrrr, 2021-07-11
@danchikraw

when you click on "Show number", two requests are sent, the first of them is GET just the same for getting the phone number, where the number comes in the response. In the url, specify the ID of the announcement and see
60eaa58a9b46d101178932.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question