Answer the question
In order to leave comments, you need to log in
I can't get data from a specific site using SimpleDomHTML PHP, but what's wrong?
Friends, hello! There is a small problem with getting data from the site. In general, I open any site, except for this " https://investmint.ru/ ", I use simplehtmldom. You can try this code, suggest a way to get at least any data from this page, just for the sake of interest, you want to understand what is wrong and get the result.
include("simplehtmldom/simple_html_dom.php");
$url = " https://investmint.ru/ ";
//create a DOM object
$html = new simple_html_dom();
$html->load_file($url);
echo $html;
Answer the question
In order to leave comments, you need to log in
Bot Protection
<html>
<head>
<script>
function set_cookie () {
var now = new Date()
var time = now.getTime()
time += 19360000 * 1000
now.setTime(time)
document.cookie = 'beget=begetok' + '; expires=' + now.toGMTString() + '; path=/'
}
set_cookie()
location.reload()
</script>
</head>
<body>
</body>
</html>
Perhaps the site is drawn using JS, then through php you will not be able to see it (php does not play js), you need something like "headless chrome selenium" (headless chrome), smoke in this direction.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question