从python中调用Curl在URL中抛出非法char

时间:2015-01-23 10:27:53

标签: python curl

os.system("curl \"http://localhost:8181/api?apikey=0918e28bf971b021f9d7533ffdf6ad02&cmd=findArtist&name=%s&limit=1\" -o tmpartist.txt" %artist)

我收到此错误curl: (3) Illegal characters found in URL此测试的艺术家是Taylor%20Swift

我正在使用的api是耳机https://github.com/rembo10/headphones/blob/master/API.md

0 个答案:

没有答案