Closed hitsfromdabong closed 4 years ago
Getting same error
I installed with pip install soundscrape
in venv which contains python3. Technically it should work?
I also happened to get this error when I was trying to scrape something really long (>1 hour). Don't see how that error could be linked to length, but maybe it is.
@christopherjmedlin I followed above mentioned steps and it worked for me.
another example of this issue:
$ soundscrape https://soundcloud.com/anjunadeep/the-anjunadeep-edition-241
Downloading: The Anjunadeep Edition 241 with Braxton
Problem downloading The Anjunadeep Edition 241 with Braxton
Traceback (most recent call last):
File "/usr/local/bin/soundscrape", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 119, in main
process_soundcloud(vargs)
File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 292, in process_soundcloud
id3_extras=id3_extras)
File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 460, in download_tracks
puts_safe(e)
File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 1315, in puts_safe
puts(text)
File "/usr/local/lib/python2.7/dist-packages/clint/textui/core.py", line 57, in puts
s = tsplit(s, NEWLINES)
File "/usr/local/lib/python2.7/dist-packages/clint/utils.py", line 69, in tsplit
string = string.replace(i, final_delimiter)
AttributeError: 'HTTPError' object has no attribute 'replace'
PR #241 handles http errors more gracefully.
Running
soundscrape https://soundcloud.com/twsounds/paula-temple-live-at-time-warp-2018
results in:This is a problem with
urllib
.soundscrape
was installed withbrew
and ran under python v 2.7.Running with python v 3 fixes the problem.
Quick fix: