Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/env bash
- if [ "$#" -eq 1 ]
- then
- curl "$1" | grep -Eo '<script(.*)</script>' | grep mp4 | sed -re 's#<script([^>]+)></script>##g' | sed -re 's#<script([^>]*)>##g' | sed -re 's#;</script>##g' | sed -re 's#^([a-zA-Z0-9_\.]+)=##g' | jq .state.data.video.videos_manifest
- else
- echo "Usage : $0 <url>"
- fi
Add Comment
Please, Sign In to add comment