Created
March 17, 2020 14:27
-
-
Save rexlManu/e92a8dfe199c75de77e5bd226ad7e321 to your computer and use it in GitHub Desktop.
Download workupload files via curl
This file contains 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
if [ -z "$1" ] || [ -z "$2" ] | |
then | |
echo "workupload_download.sh <workupload id> <output file name>" | |
exit 1 | |
fi | |
echo "Getting download url from workupload servers" | |
URL="$(curl -s "https://workupload.com/api/file/getDownloadServer/$1" | \python -c "import sys, json; print(json.load(sys.stdin)['data']['url'])")" | |
echo "Starting to download the actual file" | |
curl --silent $URL -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36 OPR/67.0.3575.53' -H 'Sec-Fetch-Dest: document' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' -H 'Sec-Fetch-Site: none' -H 'Sec-Fetch-Mode: navigate' -H 'Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7' -H 'Cookie: token=tjuqjuuobv97ma180qn6vg92lu' --compressed --output $2 | |
echo "Download finished. Have a happy day :)" |
Script doesnt work, it seems they have changed their format. The downloaded file is a redirect page back to the download page.
@TheArcaneBrony you need to update the cookie in the script then it should work
Ah, fair. I wonder if theres a way to automate that?
Idk maby make a request Extrakt the cookie header in response header
TheArcaneBrony ***@***.***> schrieb am Fr., 24. Dez. 2021,
23:38:
… ***@***.**** commented on this gist.
------------------------------
Ah, fair. I wonder if theres a way to automate that?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/e92a8dfe199c75de77e5bd226ad7e321#gistcomment-4006625>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHWM73BK2X2IVI4DTN3TXZTUSTY6NANCNFSM5AS6IVXQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
@rexlManu I forked your script and tweaked it a bit to automate the cookie process and make it a bit more user friendly. @Shivapriyan2001 @TheArcaneBrony https://gist.github.com/shawnli87/f226b4f0c7b2bef2e94477ccef00b0c8
Hi I'm new with all this is there in anyway to include a tab or how to use.txt file not sure what I'm looking at.
I don't think that my script is still working.
Not working after workupload is "checking for robots" now before opening site.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bro can't understand
can you make a video