Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom Cloud Hosted Videos Error 403 #23573

Closed
larryebaum opened this issue Dec 30, 2019 · 9 comments
Closed

Zoom Cloud Hosted Videos Error 403 #23573

larryebaum opened this issue Dec 30, 2019 · 9 comments
Labels

Comments

@larryebaum
Copy link

@larryebaum larryebaum commented Dec 30, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.12.25
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl -v 'https://ssrweb.zoom.us/cmr/replay/2019/12/20/9166126973/CE6FF0F5-E6D4-4D23-A1D9-7107786C4911/GMT20191220-031534_Larry-Eich_1280x960.mp4?response-content-type=video%2Fmp4&data=74e279d3db93416f870120169b805d794b9dcb3fa763aca39787a8f8eaaad232&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6IioiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1Nzc3NDAyNTh9fX1dfQ__&Signature=JB5S6taJ1GloppfTfhYiiFzXGzJHtZDWZpiNmSEOc1pgc8xLdPkK3leEc9tZT3Ko2iOg9HGfbNWQ6m1I1oZxwP5S8kWu3IjYSotogKpZl41hxQc1gv2cDLfOmw2IGBHf1KfPtomLVlIXcqp4NnZmWMdQe7BikotpOsEUP~FTvik72RKPGWThbaSIJm8boZ5k84lclN0I8JTreiqMlYxJR6kA3ZX~tgEUoZFCEYMV0u4L~9czjtSHAZYi4NPI39leKNqNWiNs~yaB8WVVj9aSfYcYiCMPxlfZnjya~bLUIuYojrSsowy7IxvZXzlyb-X6gld0ZleRA-n93izFOr~wEA__&Key-Pair-Id=APKAJFHNSLHYCGFYQGIA'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://ssrweb.zoom.us/cmr/replay/2019/12/20/9166126973/CE6FF0F5-E6D4-4D23-A1D9-7107786C4911/GMT20191220-031534_Larry-Eich_1280x960.mp4?response-content-type=video%2Fmp4&data=74e279d3db93416f870120169b805d794b9dcb3fa763aca39787a8f8eaaad232&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6IioiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1Nzc3NDAyNTh9fX1dfQ__&Signature=JB5S6taJ1GloppfTfhYiiFzXGzJHtZDWZpiNmSEOc1pgc8xLdPkK3leEc9tZT3Ko2iOg9HGfbNWQ6m1I1oZxwP5S8kWu3IjYSotogKpZl41hxQc1gv2cDLfOmw2IGBHf1KfPtomLVlIXcqp4NnZmWMdQe7BikotpOsEUP~FTvik72RKPGWThbaSIJm8boZ5k84lclN0I8JTreiqMlYxJR6kA3ZX~tgEUoZFCEYMV0u4L~9czjtSHAZYi4NPI39leKNqNWiNs~yaB8WVVj9aSfYcYiCMPxlfZnjya~bLUIuYojrSsowy7IxvZXzlyb-X6gld0ZleRA-n93izFOr~wEA__&Key-Pair-Id=APKAJFHNSLHYCGFYQGIA']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.12.25
[debug] Python version 2.7.16 (CPython) - Darwin-19.0.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[generic] GMT20191220-031534_Larry-Eich_1280x960: Requesting header
WARNING: Could not send HEAD request to https://ssrweb.zoom.us/cmr/replay/2019/12/20/9166126973/CE6FF0F5-E6D4-4D23-A1D9-7107786C4911/GMT20191220-031534_Larry-Eich_1280x960.mp4?response-content-type=video%2Fmp4&data=74e279d3db93416f870120169b805d794b9dcb3fa763aca39787a8f8eaaad232&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6IioiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1Nzc3NDAyNTh9fX1dfQ__&Signature=JB5S6taJ1GloppfTfhYiiFzXGzJHtZDWZpiNmSEOc1pgc8xLdPkK3leEc9tZT3Ko2iOg9HGfbNWQ6m1I1oZxwP5S8kWu3IjYSotogKpZl41hxQc1gv2cDLfOmw2IGBHf1KfPtomLVlIXcqp4NnZmWMdQe7BikotpOsEUP~FTvik72RKPGWThbaSIJm8boZ5k84lclN0I8JTreiqMlYxJR6kA3ZX~tgEUoZFCEYMV0u4L~9czjtSHAZYi4NPI39leKNqNWiNs~yaB8WVVj9aSfYcYiCMPxlfZnjya~bLUIuYojrSsowy7IxvZXzlyb-X6gld0ZleRA-n93izFOr~wEA__&Key-Pair-Id=APKAJFHNSLHYCGFYQGIA: HTTP Error 403: Forbbiden
[generic] GMT20191220-031534_Larry-Eich_1280x960: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: Forbbiden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)```


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Browsing to a Zoom recording hosted on the Zoom cloud platform.

- https://hashicorp.zoom.us/rec/share/98kyMOD9_F5OeavNsnHyeqMODqbIT6a81SQY-qYOmUfdoSYzkDL8iVMpXL-rgKOo?startTime=1576811734000

View source and locate the 'viewMp4Url' value.
Copy the value and execute 'youtube-dl <value>'
Video should download (worked as expected last on Nov 1 2019).
Since then, 403 errors result. (see log above)
Passing -u <username> with password passed interactively with the command also results in 403 error.
Opened issue with Zoom also, in the event this is hosting change on their side (my suspicion).
@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 30, 2019

provide the original URL.

@larryebaum
Copy link
Author

@larryebaum larryebaum commented Dec 30, 2019

@remitamine Revised explanation to include URL

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 30, 2019

not accessible without an account.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 30, 2019

anyway, most likely you're missing some special cookie or header required by the URL you're trying to download from.

@sheedy
Copy link

@sheedy sheedy commented Jan 12, 2020

I got the same error then added the following and it worked:

--referer "https://zoom.us/" \
--add-header "Cookie:VALUE_FROM_REQUEST_HEADERS_IN_MY_BROWSER"

Up until a couple of weeks ago, I was just grabbing the url from either the network request panel in devtools or the HTML element and opening it in a new tab then saving the video once it started to load up. For some reason, every time I open the url (tried in multiple browsers) I now get 403 🤷‍♂.

So then I tried youtube-dl and got the same type of error before using the arguments above.

@solarkraft
Copy link

@solarkraft solarkraft commented Apr 7, 2020

Could anyone please explain why #24643 and #16597 are locked?

@Romern Romern mentioned this issue Apr 12, 2020
5 of 9 tasks complete
@zanoo
Copy link

@zanoo zanoo commented Apr 21, 2020

Just a note on Sheedy's instructions: if you're using Zoom hosted on another website (e.g. the URL on which your video is displayed looks like "some-subdomain.zoom.us"), remember to change the referer to "some-subdomain.zoom.us" (which will match the referer in the request headers in Chrome). Also, remember to put the URL in quotes.

Edit: Seems like it's not necessary to add the "some-subdomain.zoom.us" referer.

@sheedy
Copy link

@sheedy sheedy commented Apr 21, 2020

Glad you got it working @zanoo. I had to download one so tested it out again and I actually didn't have to add the subdomain 🤷‍♂️.

Recorded the convoluted process in case anyone else needs it. It's brutal, hope someone else has an easier way to get these. Not sure why the browser doesn't get the request headers to copy on the first tab.

zoom-download

I just paste that lust chunk of text and paste into the terminal.

@tg-x
Copy link

@tg-x tg-x commented May 19, 2020

zoom-dl.sh

#!/bin/sh

url="$1"
jar=$(mktemp)
mp4=$(curl -s -c "$jar" "$url" | grep video/mp4 | grep -o 'https:[^"]*')
file=$(echo "$mp4" | grep -o "[^/? ]*\.mp4")

echo "Downloading $file"
curl -b "$jar" -o "$file" -e "$url" "$mp4"
rm "$jar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.