I am trying to parse a TV program from Yandex (channel list) through the library simplehtmldom, I wrote:

require 'simplehtmldom/simple_html_dom.php'; $html = file_get_html('http://tv.yandex.ru/49/channels/'); echo $html; 

But he doesn’t even display the page to me, it displays the loaded page, but it says there that “For the operation of the page, you need to enable Javascript”, I’ve already enabled it. What's wrong?

  • 2
    Where is your javascript enabled? In the browser?)) And inside file_get_html what? - gridsane
  • PHP runs on the server. There JS can be turned off :) - atnartur
  • - instead of file_get_contents need curl-ohm - Vfvtnjd

1 answer 1

I prefer the option of parsing from the source - http://www.s-tv.ru/old/tv/. Parsing without problems.