How to find hls video url in website traffic

how to find m3u8 video url in website traffic
i need javascript code
I will copy the url and download the video