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

[8tracks] throws 403 error after first 4 songs. Nothing downloads. #2310

Closed
cadejscroggins opened this issue Feb 4, 2014 · 11 comments
Closed

[8tracks] throws 403 error after first 4 songs. Nothing downloads. #2310

cadejscroggins opened this issue Feb 4, 2014 · 11 comments
Labels
bug

Comments

@cadejscroggins
Copy link

@cadejscroggins cadejscroggins commented Feb 4, 2014

8tracks recently updated their API to version 3. They probably updated their security on this (because, according to their license, you can only skip 3 songs within a certain time frame).

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 4, 2014

Please post the full output you get when running youtube-dl SOME_8TRACK_URL -v. As stated in the bug reporting guide, it's nearly impossible to debug the errors without that info.

@cadejscroggins
Copy link
Author

@cadejscroggins cadejscroggins commented Feb 4, 2014

Results:

cade@batman:~> youtube-dl --verbose "http://8tracks.com/cadejscroggins/blast-off"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://8tracks.com/cadejscroggins/blast-off']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.04
[debug] Python version 2.7.6 - Darwin-13.0.0-x86_64-i386-64bit
[debug] Proxy map: {}
[8tracks] blast-off: Downloading webpage
[8tracks] blast-off: Downloading song information 1/13
[8tracks] blast-off: Downloading song information 2/13
[8tracks] blast-off: Downloading song information 3/13
[8tracks] blast-off: Downloading song information 4/13
[8tracks] blast-off: Downloading song information 5/13
ERROR: Failed to download song information: HTTP Error 403: Forbidden; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 191, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1157, in urlopen
return self._opener.open(req)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

@jaimeMF jaimeMF added the bug label Feb 4, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 4, 2014

Thanks, we will investigate. It seems that not all urls fail, at least our test url (http://8tracks.com/ytdl/youtube-dl-test-tracks-a) works fine (although it failed a few days ago).

@cadejscroggins
Copy link
Author

@cadejscroggins cadejscroggins commented Feb 4, 2014

So I found a fix. The download script (eighttracks.py) doesn't even use the 8tracks API. I modified it to use API version 3, and it seems to fix the issue.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 4, 2014

Feel free to open a pull request with the fix.

@izaakm
Copy link

@izaakm izaakm commented Sep 8, 2014

Similar problem...

youtube-dl --verbose 'http://8tracks.com/noonpacific/noon-103'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://8tracks.com/noonpacific/noon-103']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.09.06
[debug] Python version 2.6.9 - Darwin-13.3.0-x86_64-i386-64bit
[debug] Proxy map: {}
[8tracks] noon-103: Downloading webpage
[8tracks] noon-103: Downloading song information 1/10
[8tracks] noon-103: Downloading song information 2/10
[8tracks] noon-103: Downloading song information 3/10
[8tracks] noon-103: Downloading song information 4/10
[8tracks] noon-103: Downloading song information 5/10
ERROR: Failed to download song information: HTTP Error 403: Forbidden; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 211, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1244, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(_args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(_args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

@ghost
Copy link

@ghost ghost commented Nov 10, 2014

Identical error to @izaakm, latest pip upgrade.

@xiaose
Copy link

@xiaose xiaose commented Dec 29, 2014

Previously I can but now I cannot to download anything from 8tracks site. All time get HTTP Error 403: Forbidden

May be thay there change smth., I don't know... but in browser I can open page http://8tracks.com/jbear_4/new-american-roots-vol-i

$ youtube-dl --verbose http://8tracks.com/jbear_4/new-american-roots-vol-i
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://8tracks.com/jbear_4/new-american-roots-vol-i']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.12.15
[debug] Python version 2.7.6 - Linux-3.13.0-40-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.16-6, avprobe 9.16-6
[debug] Proxy map: {}
[8tracks] new-american-roots-vol-i: Downloading webpage
[8tracks] new-american-roots-vol-i: Downloading song information 1/12
[8tracks] new-american-roots-vol-i: Downloading song information 2/12
[8tracks] new-american-roots-vol-i: Downloading song information 3/12
[8tracks] new-american-roots-vol-i: Downloading song information 4/12
[8tracks] new-american-roots-vol-i: Downloading song information 5/12
ERROR: Failed to download song information: 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 276, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1370, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
@bubbleguuum
Copy link

@bubbleguuum bubbleguuum commented Nov 3, 2015

Ok, thanks for the explanation. So if you need it non blocking, 8tracks is incompatible with -J, unless there would be a parameter to have it stop to the first 5 items and return immediately.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 3, 2015

Just to clarify: -J does not change the work flow. The flag just supresses irrelevant outputs.

The feature "stop to the first 5 items and return immediately" is different from the original one. If it's exactly what you want, open a new issue.

@bubbleguuum
Copy link

@bubbleguuum bubbleguuum commented Nov 3, 2015

Done as #7350

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.