[FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?
rwijnsma at xs4all.nl
Sat Jan 8 21:24:35 EET 2022
On 2022-01-08T18:34:34+0100, Bo Berglund <bo.berglund at gmail.com> wrote:
> and the other working much better had the stream url:
> This 2:nd URL I could only find by using Firefox in F12 mode when playing, so it
> was completely manual. Not good when it changes often..
If that url starts working again, then there are 3 places to find it in the HTML-source, which you can extract with the HTML- and JSON-parser Xidel:
$ xidel -s "https://msnbcdailyshows.com/" -f "(//iframe)/@src" -e '
//meta[@property="og:description"]/normalize-space(@content), (: #1 :)
normalize-space(//div[@class="post-body entry-content"]), (: #2 :)
parse-json( (: #3 :)
On 2022-01-08T20:10:29+0100, Bo Berglund <bo.berglund at gmail.com> wrote:
> This tool xidel you use, from where is that?
> How can it be installed?
I'm using the Windows binary in a Bash environment, but last I heared quite some Linux packagemanagers also have it, though most likely not the latest build <https://sourceforge.net/projects/videlibri/files/Xidel/Xidel%20development/>.
More information about the ffmpeg-user