From bc726fe81f22893871b385f1944a7f10b26c26cd Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Thu, 13 Aug 2020 11:35:33 +0200 Subject: [PATCH] Add twist-dl.sh --- twist-dl.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 twist-dl.sh diff --git a/twist-dl.sh b/twist-dl.sh new file mode 100755 index 0000000..d3fdbd7 --- /dev/null +++ b/twist-dl.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +url=$1 + +curl -g -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0" \ + -H "Accept: video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5" \ + -H "Accept-Language: en-US,en;q=0.5" \ + -H "Range: bytes=0-" \ + -H "Connection: keep-alive" \ + -H "Referer: https://twist.moe" \ + -H "Pragma: no-cache" \ + -H "Cache-Control: no-cache" \ + "$url"