A
A
Al Sm2017-04-10 17:38:41
PHP
Al Sm, 2017-04-10 17:38:41

How to parse data from the resource myscore.ru?

Hello. Please tell me what could be the problem. I am just starting to learn parsing, and before that I tried to parse static pages and take the necessary information. Now I decided to take information about some sports matches from the site myscore.ru
The fact is that it is convenient to select the necessary matches there by putting a bird in the checkbox and these matches appear in a separate tab. But the problem is that with normal parsing, there is no information about matches at all and only the header, footer and sidebar are parsed.

$url2 = "http://www.myscore.com.ua/hockey/"; 
$curl2 = curl_init($url2); 
curl_setopt($curl2, CURLOPT_RETURNTRANSFER, 1); 

$page2 = curl_exec($curl2);

Can you please tell me in which direction to dig further? Maybe there is protection in general and sparing something is not real?
Thanks a lot to everyone who responded!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pushkarev, 2017-04-10
@radio_mus

See what requests the mobile application sends. It works 100% through REST. You only need to know the request stack.
This is done through a regular emulator and a package capturer. Then contact via api and parse

D
Danbka, 2017-04-10
@Danbka

There is no information about the matches, because it is loaded on the page with a separate ajax request, after loading the header, footer and sidebar.
How to parse them - you have to figure it out yourself. Maybe not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question