• Stars
    star
    402
  • Rank 107,380 (Top 3 %)
  • Language
    Shell
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

喜马拉雅音频下载工具

xmlyfetcher 【全新升级!!!】

该工具用于下载喜马拉雅歌曲资源,可以下载单个音频资源,也可以下载整个专辑. 喜欢的请打个红心!!!

asciicast

安装

  1. 确认是否安装Python,一般系统会自带
python -V
  1. 安装该工具
wget https://raw.githubusercontent.com/smallmuou/xmlyfetcher/master/xmlyfetcher
sudo cp xmlyfetcher /usr/local/bin
sudo chmod +x /usr/local/bin/xmlyfetcher

使用

xmlyfetcher 专辑ID 类型 参数

专辑ID可以通过浏览器URL获取,如https://www.ximalaya.com/album/2677356,则专辑ID为2677356

类型分为3种,分别是all、page、track

all - 下载整个专辑
page - 下载若干页曲目,支持传递多个页号,从1开始,每页30
track - 下载若干曲目,支持传递多个曲目ID,曲目ID可以通过浏览器URL获取,比如点击某个曲目,其URL为https://www.ximalaya.com/sound/25202,则曲目ID为25202

# 下载专辑
xmlyfetcher 12891461 all

# 下载专辑前2页
xmlyfetcher 12891461 page 1 2

# 下载单个曲目
xmlyfetcher 12891461 track 211393643

PS: 可以使用xmlyfetcher -h查看更详细的帮助

xmlyfetcher version 2.0.0 by smallmuou

USAGE: xmlyfetcher [OPTIONS] albumId type [type-param1 [type-param1 ...]]

DESCRIPTION:
    This tool is used to download tracks under ximalaya.com.

    albumId - the id of album, you can see from url,like https://www.ximalaya.com/album/2677356, the albumId is 2677356
    type - all/page/track, when type is all, no type-params required; when type is page, the type-params is the pagenum (start with 1); when type is track, the type-params is trackid;
    trackId - the id of track, you can see from url,like https://www.ximalaya.com/sound/25202, the trackId is 25202

OPTIONS:
    -h      Show this help message and exit.
    -o      Output directory, default is current directory.

EXAMPLES:
    xmlyfetcher 12891461 all
    xmlyfetcher 12891461 page 1 2 3
    xmlyfetcher 12891461 track 211393643
    xmlyfetcher -o ~/tmp 12891461 track 211393643

版本记录

  • 2.0.1(2023.2.7)

    • 适配python3
    • 支持下载到指定目录
  • 2.0.0(2023.1.31)

    • 修复无法下载专辑BUG
    • 支持指定若干页面下载
    • 参数格式调整
  • 1.1.1(2019.9.29)

    • 修复下载资源名称包括非法字母,导致"没有那个文件或目录"问题
  • 1.1.0(2019.9.12)

    • 改为接口获取专辑信息,而不是解析HTML
  • 1.0.3(2019.9.10)

    • 移除了jshon依赖
    • 修复无法获取专辑问题
  • 1.0.2

    • 修复无法获取专辑问题
  • 1.0.1

    • 支持下载一个专辑的所有歌曲(支持翻页)
  • 1.0.0

    • 支持下载单个歌曲和专辑

许可

该开源工具具有MIT许可协议. 本工具仅限个人学习,不用于商业等用途. 所涉及的音视频资源版权归喜马拉雅所有.

More Repositories

1

ios-icon-generator

This script is use to generate iOS/macOS/watchOS app icons more easier.
Shell
959
star
2

PPDragDropBadgeView

PPDragDropBadgeView is a badge view which able to drag and drop. Just like QQ 5.0 badge view.
Objective-C
314
star
3

PPHTMLImagePreviewDemo

该Repo用于演示APP中点击HTML的图片来预览图片的功能
Objective-C
89
star
4

Jekyll-Pithy

Pithy Jekyll Theme
CSS
69
star
5

wavutils

wavutils is a tool set that process wav file
Shell
46
star
6

PPSqliteORM

Sqlite数据库的ORM操作,基于FMDB,封装成framework,操作简单
Objective-C
34
star
7

xcode-configure

This command can generate makefile to build xcode project in command line just like <configure & make & make install> in C/C++ language world.
Shell
34
star
8

ios-resource-3x2x1x

该脚本实现批量将3x图片资源转化成2x与1x
Shell
16
star
9

lightssdpd

ssdp server and client
C
15
star
10

baiduyun-accelerator

百度云加速器
Shell
13
star
11

PPTranslator

汉字转换成拼音首字母
Objective-C
7
star
12

YDSlider

为Slider添加middleTrack,用于实现音乐或视频播放的buffered进度
Objective-C
7
star
13

map2cloud

Map local port to cloud - 映射本地端口至云端
Shell
5
star
14

SandboxAccessor

SandboxAccessor is a lib based on mongoose to access sandbox more easier
C
5
star
15

apns-tester

APNS测试,包含服务端、客户端
Objective-C
5
star
16

travis-ci-tutorial

从零开始,travis-ci入门教程
C
4
star
17

tcp_server_client_demo

TCP Server & Client Demo
C
4
star
18

app-publisher

APP内测发布系统
Shell
3
star
19

tinyhtml

Expand tinyxml,support html
C++
3
star
20

Blogs

Store my blogs
Python
3
star
21

dictionary

dictionary for c
C
2
star
22

yuedu

client for yuedu.fm
Objective-C
2
star
23

yeelink-python-sdk

Yeelink sdk for python
Python
2
star
24

RefreshView

RefreshView for uiscrollview(support pull down/up/left/right)
Objective-C
2
star
25

RTSPPlayer

RTSPPlayer write by objc
C
2
star
26

VolumeBar

VolumeBar write by objc
Objective-C
1
star
27

PPPopoverSlideViewController

从侧边弹出菜单,并具备毛玻璃效果
Objective-C
1
star
28

jssh

Run javascript in shell
Shell
1
star
29

myplayer

myplayer is my family customized music player. with raspberrypi + dac + volumio + motion + myplayer + cron, i build a self-play music player
Shell
1
star
30

hello-grunt

为了方便grunt初学者能够快速地入门,本Repo为大家展现一个简单而有趣的示例,在本示例中,为大家展现『如何实现js文件自动化压缩』
JavaScript
1
star
31

CocoaPodsSpecs

This repo use to story my favorate thirdpart libraray.
Ruby
1
star
32

UIOverlapedViewController

UIOverlapedViewController write by objc
Objective-C
1
star
33

qn-ctl

qiniu commands just like ls/rm/mkdir/put/get in linux file operation.
Shell
1
star
34

Dimmer

Dimmer write by objc
Objective-C
1
star
35

PPAdvertisingView

Advertising view for app.
Objective-C
1
star
36

XCodeCodeSnippets

Auto sync my xcode code snippets to github
Shell
1
star
37

rtprewrite

rewrite rtp package, like tcprewrite
Shell
1
star