Spaces:
Paused
Paused
Download src/test.py from SemxDilado/demoss: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/spaces/SemxDilado/demoss/resolve/main/src/test.py
- Command line
-
hf download hf://spaces/SemxDilado/demoss/src/test.py
-
curl -L -o test.py https://huggingface.co/spaces/SemxDilado/demoss/resolve/main/src/test.py
272 Bytes
| #!/usr/bin/env python3 | |
| # coding: utf-8 | |
| # ytdlbot - test.py | |
| import yt_dlp | |
| url = "https://www.youtube.com/watch?v=e19kTVgb2c8" | |
| opts = { | |
| "cookiefile": "cookies.txt", | |
| "cookiesfrombrowser": ["firefox"], | |
| } | |
| with yt_dlp.YoutubeDL(opts) as ydl: | |
| ydl.download([url]) | |