Advertisement
Guest User

ripping videos off twitter

a guest
Feb 4th, 2023
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | Source Code | 0 0
  1. ffmpeg -i ("<TWEET CONTAINING VIDEO>" -replace '(https:\/\/)?twitter.com\/.*\/status\/','curl -Uri https://cdn.syndication.twimg.com/tweet-result?id=' | Invoke-Expression | Select-Object -ExpandProperty Content | ConvertFrom-Json | Select -ExpandProperty "mediaDetails" | Select -ExpandProperty "video_info" | Select -ExpandProperty "variants" | Sort-Object -Property bitrate -Descending | select -first 1 | Select-Object -ExpandProperty url) -c copy .\OutFile.mp4
  2.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement