Answer the question
In order to leave comments, you need to log in
How to scrape an olx website?
Hello, I ran into one problem, I need to write a parser, when parsing it gives out null arrays
Link to the site
Here is an example code
$url = file_get_html('https://www.olx.ua/nedvizhimost/kharkov/?currency=USD');
$findtest = $url->find('div.innerLayout');
echo $url;
Answer the question
In order to leave comments, you need to log in
Obviously the site doesn't want to be scraped. You need to pretend to be a user, use good headers, User-Agent, ip etc...
They feel it's a bot and give it a stub. You have to learn to be more human)
Puppeteer. But not simple, but with a set of antideterminants
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question