-
Notifications
You must be signed in to change notification settings - Fork 331
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
HTTPError: 401 Client Error: Unauthorized for url #292
Comments
Also wanted to add onto this report that I'm now getting another error while trying to run the same command again. Here's output again
|
yup |
Is Soundcloud preventing the downloads bcoz the API isn't available? |
30968bc introduce a fix for this and the issue with unauthorized track since a few days. You will have to install it from source as this version is still not on pipy. If you do it don't forget to |
I also have this error but this fixed it:
|
I got that error to go away by updating python, uninstalling, then reinstalling, but I then got a parse error I fixed by pip install configparser but now I have yet another error john$ scdl Anyone know how to fix this? |
Oh man, I’ve gotten that error before for a completely different program . Do you use conda by any chance?
…Sent from my iPhone
On Nov 30, 2019, at 4:41 PM, khamsathous ***@***.***> wrote:
I got that error to go away by updating python, uninstalling, then reinstalling, but I then got a parse error I fixed by
pip install configparser
but now I have yet another error
john$ scdl
Traceback (most recent call last):
File "/usr/local/bin/scdl", line 5, in
from scdl.scdl import main
File "/usr/local/lib/python2.7/site-packages/scdl/scdl.py", line 73, in
from scdl import version, CLIENT_ID, ALT_CLIENT_ID
ImportError: cannot import name version
Anyone know how to fix this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Why pull the enormity of ffmpeg in, and using shell piping instead of its api, when there are already pure-python HLS parsers like https://github.com/globocom/m3u8 ? |
i think there's a ffmpeg lib in python |
Here is a few reasons :
If you have any idea on how to do this in a cleaner way feel free to open a Pull Request. |
I think you're using python 2, not python 3. |
@flyingrub yo, what is better to download http_mp3_128 or hls_mp3_128? |
http_mp3_128 is not available for every track, that is why I am using hls_mp3_128. |
shlex.quote() doesn't seem to be working for me like it is for the rest of you, ampersands in the url are still being treated as control operators. |
Check my fork, I replaced quotes from |
@CROSP Thanks very much, working here too. |
Your fork is not working for me, getting an ffmpeg File not found error. It seems to be trying to pass this enormous URL as the input to ffmpeg. That is from this link: https://soundcloud.com/porcelainblackfans/sets/porcelain-black-porcelain-and-the-tramps |
The "fix" of using ffmpeg doesn't seem to work at all: I updated scdl when I got the error mentioned in this issue, but the latest version just has the ffmpeg error as explained in issue #291 |
Here are the steps I had to take to get this working again:
After doing this it works for me. |
Edit: Nvm I figured out where to get the bin file from, my only remaining question is which path to put it in |
Anywhere that scdl can see it from. You can even drop scdl and everything in bin into the same folder and scdl will use it just fine. ffmpeg's very useful in general, so I have it in the system path; the user path would work, except for anything run as administrator. (I actually have some tricky junctions set up to go to different folders depending on x86 or x64, but practically everything's x64 now anyway.) Oh, and by "path" we mean the thing you get to when you right click the start button, choose settings, click system info on the top right, click advanced system settings on the left, and open the "Environment Variables." One of them is PATH, and the system combines the system and user version to look up missing files before it fails. Some installers of ffmpeg will do the add to path for you, but I forget which ones. |
I opened up a PR that appears to fix these issues. #304 |
thanks to all of you for your help, particularly @flyingrub and @CROSP! I'm definitely a beginner here, having the same issue but on Mac. I'm using pip3 instead of pip (because the Mac's system pip is 2.7, whereas the new python i've installed is now 3.8). What is ffmpeg, and how do I install it? Moreover, how do I "add the bin folder to my path" on Mac? Currently, SCDL seems to be downloading to my user folder on Mac. |
you should be install to run |
done! ffmpeg is installed now, through homebrew. How do I set the ffmpeg's bin file into scdl's path? more specifically, what should I type into terminal in order to get scdl to see ffmpeg? currently, scdl is outputting to my username (where my application folder is) on my Mac (running mojave 10.14.5). Here's what I'm getting in terminal: |
Latest commit on master should fix those issues. c221e43 |
Issue unresolved, still gives error on latest version:
Note: Python 3.8 does seem to work. This may be affected by recent oddities with how the request module handles security. |
pip uninstall scdl |
Have used scdl flawlessly before but now seem to be getting 401 client error. Saw this was a similar issue in the Soundcloud Downloader that is part of Youtube DL here on GitHub. Someone was able to resolve the error, but I was unable to replicate the update they pushed when trying to fix scdl. Here is my console output below.
The text was updated successfully, but these errors were encountered: