smallmuou / xmlyfetcher Goto Github PK
View Code? Open in Web Editor NEW喜马拉雅音频下载工具
喜马拉雅音频下载工具
此URL资源无法下载
https://www.ximalaya.com/waiyu/4323746/17728518
错误提示信息:
[INFO] Fetch track 1/1 ...
./零起点英语Lesson 10-(There is / are...).mp3: 没有那个文件或目录
环境:
Python 2.7.13
Debian 9
$ xmlyfetcher https://www.ximalaya.com/ertong/6233693/
warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 167: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 169: ((: i<=/: syntax error: operand expected (error token is "/")
[INFO] Contain 0 track(s), start fetch ...
VIP章节不能下载
$ xmlyfetcher https://www.ximalaya.com/ertong/6233693/
warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 167: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 169: ((: i<=/: syntax error: operand expected (error token is "/")
[INFO] Contain 0 track(s), start fetch ...
修复方法:
sed -n 's/.AlbumDetailTrackList":(.)};</script>.*$/\1/p'
第一次在github上提issue,我怎么直接修改后提交呢
不添加序号的话,下载下来的顺序是乱的。按时间排序有时候都不是顺序的。
warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
expr: syntax error
expr: syntax error
/usr/local/bin/xmlyfetcher: line 167: [: -ne: unary operator expected
/usr/local/bin/xmlyfetcher: line 170: ((: i<=: syntax error: operand expected (error token is "<=")
[INFO] Contain 0 track(s), start fetch ...
xmlyfetcher https://www.ximalaya.com/lishi/19572564/
json read error: line 1 column 47806: end of file expected near ';'
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 165: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 167: ((: i<=/: syntax error: operand expected (error token is "/")
[INFO] Contain 0 track(s), start fetch ...
OS: Ubuntu18.04 LTS X64
➜ xmlyfetcher git:(master) ./xmlyfetcher 96909420 all
./xmlyfetcher: line 203: python: command not found
[INFO] Total count is
./xmlyfetcher: line 188: python: command not found
./xmlyfetcher: line 188: python: command not found
我这有喜马拉雅的会员, 可以通过认证吗?批量下载吗?
make编译不通过
fetch资源的时候报错:
parse error: type 'object' has no elements to extract (arg 2)
请教一下该如何处理呢?谢谢
建议增加序号功能
删除url64链接中的 \ 正则表达式报错
sed 's/\\\//g'
我修改为
sed 's/\\//g'
运行正确
编译jshon报错
按照文档来的
wget http://kmkeen.com/jshon/jshon.tar.gz
tar -zxf jshon.tar.gz
cd jshon-20120914/
make
cc -std=c99 -Wall -pedantic -Wextra -Werror -c -o jshon.o jshon.c
jshon.c:8:10: fatal error: jansson.h: No such file or directory
#include <jansson.h>
^~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'jshon.o' failed
make: *** [jshon.o] Error 1
gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[ERROR] Failed to fetch the track, may be a paid resource.
[INFO] Fetch track 153/1250 ...
[ERROR] Failed to fetch the track, may be a paid resource.
[INFO] Fetch track 154/1250 ...
[ERROR] Failed to fetch the track, may be a paid resource.
[INFO] Fetch track 155/1250 ...
能不能只获取链接或者专辑更新?以实现自动化
当我尝试下载 album/5088825
出现以下错误信息
/usr/local/bin/xmlyfetcher: line 203: python: command not found
[INFO] Total count is
/usr/local/bin/xmlyfetcher: line 188: python: command not found
/usr/local/bin/xmlyfetcher: line 188: python: command not found
xmlyfetcher https://www.ximalaya.com/ertong/383939/
warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 167: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 169: ((: i<=/: syntax error: operand expected (error token is "/")
[�[1;32mINFO�[0m] Contain 0 track(s), start fetch ...
Hi, this tool works fine for free track. But how do I download the purchased VIP track. (i.e. I'm a paid member and able to listen the paid track. can I use this tool to download it?)
I have this error when I tried:
Traceback (most recent call last):
File "", line 1, in
KeyError: 'playUrl64'
在一个vagrant里的Ubuntu系统下载单音轨或者专辑都碰到了以下错误:
$ ./xmlyfetcher https://www.ximalaya.com/ertong/12891461/211393643
[INFO] Fetch track 1/1 ...
[ERROR] The trackId 211393643 does not exist.
换用vps后一切正常。
PS:
在msys2环境下有以下错误,可能跟调用的python版本有关系,我从shell直接输入python打开的是python2.7.12,但这个脚本调用的似乎却是另一位置的python3,以下错误我通过删除reload(sys) sys.setdefaultencoding("utf8")
两行解决了:
$ ./xmlyfetcher https://www.ximalaya.com/ertong/12891461/211393643
[INFO] Fetch track 1/1 ...
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
[ERROR] Failed to fetch the track, may be a paid resource.
好像是只能下载当前页面,作者能否再升级一下,让程序可以自动翻页呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.