urllib2.HTTPError: HTTP Error 401: Unauthorized #4

Open
turian opened this Issue Mar 6, 2012 · 1 comment

Comments

Projects
None yet
2 participants

turian commented Mar 6, 2012

$ ./soundcloud-dl -u  'http://soundcloud.com/platform/red-stripe-make-sessions-001/s-cnhHf'
downloading: ['http://soundcloud.com/platform/red-stripe-make-sessions-001/s-cnhHf']
fetching html...
Could not get stream token. (1)
fetching html...
Could not get stream token. (2)
fetching html...
fetching html...
Traceback (most recent call last):
  File "./soundcloud-dl", line 130, in <module>
    main(**{'url':url})
  File "./soundcloud-dl", line 110, in main
    download(uid, token, song_title)
  File "./soundcloud-dl", line 72, in download
    response = opener.open(request)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 438, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 521, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized
Owner

ngokevin commented Mar 6, 2012

Hmm...

./soundcloud-dl -u http://soundcloud.com/gabriellgabriell/skrillex-scary-monsters-and
downloading: ['http://soundcloud.com/gabriellgabriell/skrillex-scary-monsters-and']
fetching html...
Could not get stream token. (1)
fetching html...
Could not get stream token. (2)
fetching html...
fetching html...
Skrillex_-Scary_Monsters_And_Nice_Sprites(Gabriell_Remix) successfully downloaded.

It looks like that song is in some sort of playlist, I'll check later to see if the whole handshake is different for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment