Last active
May 8, 2025 15:29
-
-
Save alyleite/e33c7525c1c30cc2bd5d94901d581442 to your computer and use it in GitHub Desktop.
Cut and download youtube video online
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alterar os campos: | |
- video_id: identificador do vídeo, exemplo: https://www.youtube.com/watch?v=vO9Z5zXSnhk o video_id é vO9Z5zXSnhk | |
- video_url: Url do vídeo convertido em base64, exemplo: https://www.youtube.com/watch?v=vO9Z5zXSnhk usa | |
o site https://www.base64encode.org/ e fica aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj12TzlaNXpYU25oaw== | |
- start_time: exemplo: 5 (para começar após os primeiros 5 segundos) e false para iniciar do começo | |
- end_time: exemplo: 60 (para terminar exatamente nos 60 segundos) e false para terminar no fim | |
- video_quality: Qualidade do vídeo (480, 720, 1080) | |
- title: Nome do arquivo do download | |
De preferência rodar no postman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location 'https://dvr.yout.com/mp4' \ | |
--header 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8' \ | |
--header 'accept-language: en-US,en;q=0.7' \ | |
--header 'cache-control: max-age=0' \ | |
--header 'content-type: application/x-www-form-urlencoded' \ | |
--header 'origin: https://yout.com' \ | |
--header 'priority: u=0, i' \ | |
--header 'referer: https://yout.com/' \ | |
--header 'sec-ch-ua: "Chromium";v="136", "Brave";v="136", "Not.A/Brand";v="99"' \ | |
--header 'sec-ch-ua-mobile: ?0' \ | |
--header 'sec-ch-ua-platform: "Windows"' \ | |
--header 'sec-fetch-dest: document' \ | |
--header 'sec-fetch-mode: navigate' \ | |
--header 'sec-fetch-site: same-site' \ | |
--header 'sec-fetch-user: ?1' \ | |
--header 'sec-gpc: 1' \ | |
--header 'upgrade-insecure-requests: 1' \ | |
--header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36' \ | |
--data-urlencode 'video_id=-vO9Z5zXSnhk' \ | |
--data-urlencode 'remove_silence=false' \ | |
--data-urlencode 'normalize=false' \ | |
--data-urlencode 'discover_metadata=false' \ | |
--data-urlencode 'video_url=aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj12TzlaNXpYU25oaw==' \ | |
--data-urlencode 'format=mp4' \ | |
--data-urlencode 'selected_quality=1080' \ | |
--data-urlencode 'title=OpenAI' \ | |
--data-urlencode 'artist=' \ | |
--data-urlencode 'start_time=false' \ | |
--data-urlencode 'end_time=5' \ | |
--data-urlencode 'thingy=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbF9mb3JfYXBpX2FjY2VzcyI6ImpvaG5AbmFkZXIubXgifQ.YPt3Eb3xKekv2L3KObNqMF25vc2uVCC-aDPIN2vktmA' \ | |
--data-urlencode 'subtitle_language=en' \ | |
--data-urlencode 'video_quality=1080' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment