I
I
Icqibo2018-04-18 22:35:17
PHP
Icqibo, 2018-04-18 22:35:17

file_get_contents function - url onClick, how to do?

There is a site soccer365-1.xyz/online , I'm doing a parser
I only need "live games". There is no separate "live games" page, there is only a tab through the main one, which works through onclick. In this case, the page does not reload, but the address changes and it becomes - soccer365-1.xyz/online/&tab=1 be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yan-s, 2018-04-18
@Yan-s

The request is made using JS. You need to open the inspector (F12), go to the "Network" tab, click on the desired button on the page (live), the inspector will display the address of the completed request:
soccer365-1.xyz/?c=live&a=games_data&competition_i...

A
Alexander Razumov, 2018-04-19
@razumovsu

Judging by the site, there is all the content on the main page. just tabs switch to js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question