How do you download a video from a browser using F12?

9 months ago by fort_burp to c/linux4noobs

I'm not a programmer so I'm probably not using the right words but when I'm in Firefox and press F12 to get to the console (?) where can I find the address of the video that's currently displayed on the page (to download with wget or yt-dlp)? I tried element picker but nothing that looks like an address appeared.

TIA!

danielsiepmann 10 points 9 months ago

@fort_burp Check the network panel, not elements. There you should be able to filter for media.

Make sure to have it open befote loading the page.

Also note that some pages might use video files like mp4, some might use playlists, others might use DRM which is not supported by yt-dlp anyway.

Also yt-dlp might work just by using the website URL, it will auto fetch the video from the page.

path: 0 21404086, hotness: undefined, score: 10, children: 0
tal 6 points 9 months ago

ind the address of the video thatโ€™s currently displayed on the page (to download with wget or yt-dlp)

I think that what you're wanting to actually do isn't use the Firefox developer console, but rather the list of media.

Click on the lock icon in the URL bar. Under that, choose "Connection secure". Under that, "More information". Click on the "media" tab. You'll have a list to the URL of the videos on the page.

For many sites, though, you can just feed the address of the page, not the video embedded in the page, to yt-dlp and it'll go looking and can find the video itself.

EDIT: If you're new to yt-dlp and your URL has characters that bash interprets specially, like "&" or something, be sure to put quotes around the URL to avoid that.

E.g.:

https://www.youtube.com/watch?v=WOUY5H6b6N0&t=30s

Should be:

$ yt-dlp 'https://www.youtube.com/watch?v=WOUY5H6b6N0&t=30s'
path: 0 21404139, hotness: undefined, score: 6, children: 0
moonpiedumplings 4 points 9 months ago

yt-dlp video_url if the site is supported by yt-dlp.

If the site is not supported, F12 only works sometimes. Many sites use some form of encryption or obfuscation to try to prevent you from downloading.

I've had good luck with Xtreme download manager. It's FOSS, and has a browser extension that automatically detects videos and gives you the option to download them.

path: 0 21407015, hotness: undefined, score: 4, children: 0
ludrol 1 point 9 months ago

yt-dlp and Jdownloader2 work most times

path: 0 21412708, hotness: undefined, score: 1, children: 0
A_norny_mousse 1 point 9 months ago

Different mechanisms.

If it's YT (or a yt embed) just use yt-dlp. Same goes for many, many other sites. Other comments describe how to do that.

If not, try what @danielsiepmann@friendica.daniel-siepmann.de recommends. However, sites use all sorts of tricks like providing the video in chunks, or hiding the actual video URL behind so much javascript that a human just can't get at it, or requiring authentication etc.

path: 0 21405508, hotness: undefined, score: 1, children: 0
linux4noobs
linux4noobs

@programming.dev

login for more options
4496
307
83

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?
  • Mention your Linux distro and relevant system details.
  • Describe what you've tried so far.
  • Share your solution even if you found it yourself.
  • Do not delete your post. This allows other people to see possible solutions if they have a similar problem.
  • Properly format any scripts, code, logs, or error messages.
  • Be mindful to omit any sensitive information such as usernames, passwords, IP addresses, etc.

Community Rules

  • Keep discussions respectful and amiable. This community is a space where individuals may freely inquire, exchange thoughts, express viewpoints, and extend help without encountering belittlement. We were all a noob at one point. Differing opinions and ideas is a normal part of discourse, but it must remain civil. Offenders will be warned and/or removed.
  • Posts must be Linux oriented
  • Spam or affiliate links will not be tolerated.

go to feed...