curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: How do I dig out the "video" address in this web site?

From: Petite Abeille via curl-users <curl-users_at_cool.haxx.se>
Date: Fri, 23 Apr 2021 11:00:04 +0200

> On Apr 23, 2021, at 10:40, ToddAndMargo via curl-users <curl-users_at_cool.haxx.se> wrote:
>
> https://github.com/ytdl-org/youtube-dl/issues/10785

Ah. The trick is to retrieve the embedded url:

# youtube-dl https://rumble.com/embed/vc34wl/?pub=4
[RumbleEmbed] vc34wl: Downloading JSON metadata
[download] Destination: Yann Tiersen - Comptine d&apos;un autre été (Guitar cover) - Amelie movie soundtrack-vc34wl.mp4
[download] 100% of 49.48MiB in 00:14

Of course, the embedded url itself is obfuscated in layers upon layers of javascript:

# curl -s https://rumble.com/vepb2p-yann-tiersen-comptine-dun-autre-t-guitar-cover-amelie-movie-soundtrack.html | pup 'json{}' | gron | grep 'https://rumble.com/embed/vc34wl/'
json[0].children[0].children[0].children[12].text = "[{\"_at_context\":\"http://schema.org\",\"_at_type\":\"VideoObject\",\"name\":\"Yann Tiersen - Comptine d'un autre été (Guitar cover) - Amelie movie soundtrack\",\"playerType\":\"HTML5\",\"description\":\"Yann Tiersen - Comptine d'un autre été (Guitar cover) - Amelie movie soundtrack Learn Spanish guitar with one of my guitar courses: Songs for Spanish and Classical Guitar: https://www.thespanishguitar\",\"thumbnailUrl\":\"https://i.rmbl.ws/s8/1/r/j/n/E/rjnEb.qR4e-small-Yann-Tiersen-Comptine-dun-a.jpg\",\"uploadDate\":\"2021-03-16T12:07:17+00:00\",\"duration\":\"PT00H02M34S\",\"embedUrl\":\"https://rumble.com/embed/vc34wl/\",\"url\":\"https://rumble.com/vepb2p-yann-tiersen-comptine-dun-autre-t-guitar-cover-amelie-movie-soundtrack.html\",\"interactionStatistic\":{\"_at_type\":\"InteractionCounter\",\"interactionType\":{\"_at_type\":\"http://schema.org/WatchAction\"},\"userInteractionCount\":48},\"width\":1920,\"height\":1080,\"vide!
 oQuality\":\"Full HD\"},{\"_at_context\":\"http://schema.org\",\"_at_type\":\"WebSite\",\"url\":\"https://rumble.com/\",\"potentialAction\":{\"_at_type\":\"SearchAction\",\"target\":\"https://rumble.com/search/video?q={search}\",\"query-input\":\"required name=search\"}},{\"_at_context\":\"http://schema.org\",\"_at_type\":\"Organization\",\"name\":\"Rumble\",\"url\":\"https://rumble.com/\",\"logo\":\"https://rumble.com/i/rumble_logo_back.png\",\"sameAs\":[\"https://www.facebook.com/rumblevideo/\",\"https://twitter.com/rumblevideo\"]}]";




-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-04-23