Answer the question
In order to leave comments, you need to log in
How to parse html page using php?
I must say right away that the site is blocked on the territory of the Russian Federation, but I'm not from the Russian Federation and our site is not blocked, it opens quietly
But it's not parsed
I'm trying to parse the page - https://lzt.guru/lanskoy/
This code gives an error -
file_get_contents(https://lzt.guru/lanskoy/);
Warning: file_get_contents(https://lzt.guru/lanskoy/): failed to open stream: HTTP request failed! in...
Answer the question
In order to leave comments, you need to log in
The site is blocked on the territory of the Russian Federation. Use a proxy. Obviously your server is in Russia
This site requires javascript! Here is what python gives:
<!doctype html>
<html>
<head>
<script src="/process-qv9ypsgmv9.js"></script>
</head>
<body>
<script>window.onload=function(){process();}</script>
<noscript>
<p>Please enable JavaScript and Cookies in your browser.</p>
</noscript>
</body>
</html>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question