H
H
HappyMen2020-04-28 21:30:40
PHP
HappyMen, 2020-04-28 21:30:40

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...


Similarly with CURL

How all the same to parse?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2020-04-28
@loonny

The site is blocked on the territory of the Russian Federation. Use a proxy. Obviously your server is in Russia

S
Sergey Karbivnichy, 2020-04-28
@hottabxp

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 question

Ask a Question

731 491 924 answers to any question