ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.55k stars 10.05k forks source link

Tumblr downloads not working #22755

Open Khia9 opened 5 years ago

Khia9 commented 5 years ago

Checklist

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-f', u'mp4', u'https://admiralamott.tumblr.com/post/163458857290/tribbles-have-picked-the-wrong-man-to-mess-with']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.16
[debug] Python version 2.7.16 (CPython) - Darwin-19.0.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1.4, ffprobe 4.1.4, rtmpdump 2.4
[debug] Proxy map: {}
[Tumblr] 163458857290: Downloading webpage
[Tumblr] 163458857290: Downloading iframe page
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (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

I will preface this by saying I have basically no programming or coding knowledge or experience, and am learning from an experienced family member. However, I have been able to download videos from youtube and tumblr for the past several weeks using youtube-dl. Beginning last night, I lost the ability to download from tumblr, with a 403 error. It was working until last night, and I can still download from youtube. I have since updated youtube-dl, and the problem remains. I have tried multiple tumblr videos from multiple blogs, and the problem remains.

Here are the URLs of the videos I have tried to download:

https://admiralamott.tumblr.com/post/163458857290/tribbles-have-picked-the-wrong-man-to-mess-with

https://vmae.tumblr.com/post/179425740035/the-best-scene-in-nosferatu-1922-sound-remastered

Here is one video that I have downloaded before, with no issue, but now cannot download:

https://nunyabizni.tumblr.com/post/187337651558/sound-on

Thank you for your help

p00j4 commented 5 years ago

@Khia9 interesting https://github.com/ytdl-org/youtube-dl/issues/13829#issuecomment-330265693 has related information. May be tumblr links are now moved to safe-mode and behind authentication and you may need to pass the credentials to get it working again Eg. youtube-dl -u "${TUMBLR_USERNAME}" -p "${TUMBLR_PASSWORD}" {YOUR_VIDEO_LINK}

Khia9 commented 5 years ago

@p00j4 thanks for your reply. I tried your proposed solution, and it got me further than before (no 403 Error), but instead it said that my login credentials were insufficient. The line reads:

ERROR: Unable to login: You forgot to enter your email!

I notice that before entering the tumblr username, you suggesting using -u, and for password you suggested -p. Is there a similar prefix for an email address? And if so, where should I place the email info within the line of code?

I also tried using my email address as the username, but that threw up an error as the password and username didn't match. Thank you for your help.

rafinetiz commented 5 years ago

@p00j4 actually you will still get 403 forbidden response even when you're logged

mozai commented 3 years ago

youtube-dl version 2021.01.16 , still a problem. sample webpage: https://soothifying-sounds-asmr.tumblr.com/post/190002775825/rolling-marble-sculpture-by-physicsfun youtube-dl says "Unable to download webpage: HTTP Error 403". Tried with an alternate --user-agent.
I can use wget to download the .mp4 file from command-line.

Downloaded the webpage, found the