You can use PHP with curl to get response from page then trim tha data ( if ) m3u8 link is embeded or saved on page directly you can trim data accordingly and then echo "$url";
In case website loads m3u8 from api server or from different url after starting session . i.e site.com/link.php?name=video
You need to send request to site.com/link.php?name=video with proper header , user-agent and cookies if required (api keys)
Then you can decode the json data and display your link.
You have not provided any information,
You can use PHP with curl to get response from page then trim tha data ( if ) m3u8 link is embeded or saved on page directly you can trim data accordingly and then echo "$url";
In case website loads m3u8 from api server or from different url after starting session . i.e site.com/link.php?name=video
You need to send request to site.com/link.php?name=video with proper header , user-agent and cookies if required (api keys) Then you can decode the json data and display your link.
I