Giter Site home page Giter Site logo

iccafe / xiami-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timothyqiu/xiami-downloader

0.0 2.0 0.0 201 KB

A simple tool for downloading music previews from Xiami.

Home Page: http://timothyqiu.com/archives/xiami-music-preview-downloader/

License: MIT License

xiami-downloader's Introduction

Xiami Music Preview Downloader

A simple tool for downloading music previews from Xiami.com

Note: this is a python script using python 2.

Dependency

  • Optionally depends on mutagen module for ID3 tag support.

Usage

xiami.py [options]

Options

  • -a <album id> Adds all songs in an album to download list.
  • -p <playlist id> Adds all songs in a playlist to download list.
  • -s <song id> Adds a song to download list.
  • -f Force mode. Overwrite existing files without prompt.
  • -t urllib2|wget Change the download tool.
  • -h Shows usage.
  • --no-tag do not add tag.
  • --directory save all downloads into the directory.

<song id>, <playlist id> and <album id> can be retrived from URLs of Xiami.

Default download tool is the built-in urllib2 on Windows, others will be wget.

Example

To download the album Mahōtsukai no Yoru OST, first refer to the url http://www.xiami.com/album/511682 to get album ID: 511682. Then use the following command to download:

xiami.py -a 511682

License

This software is distributed under the MIT License.


虾米音乐试听下载器

虾米网上下载音乐试听的小工具。

注:这是一个 Python 2 脚本

依赖

  • 可选择依赖于 mutagen 模块,由其提供 ID3 支持。

使用方法

xiami.py [选项]

选项

  • -a <专辑ID> 下载该专辑中的所有歌曲。
  • -p <精选集ID> 下载该精选集中的所有歌曲。
  • -s <歌曲ID> 下载该歌曲。
  • -f 强制模式。不经确认直接覆盖重名文件。
  • -t urllib2|wget 修改下载工具。
  • -h 显示用法。
  • --no-tag 不添加 ID3 Tag。
  • --directory 将下载到的文件放入该文件夹中。

<歌曲ID><精选集ID><专辑ID> 都可以从对应虾米页面的 URL 中找出。

默认下载工具在 Windows 上是内置的 urllib2,其它平台则是 wget。

示例

例如要下载专辑《魔法使いの夜 オリジナルサウンドトラック》,首先从其 URL http://www.xiami.com/album/511682 中找出专辑 ID: 511682。然后使用如下命令下载:

xiami.py -a 511682

许可

Xiami Music Preview Downloader 使用 MIT License 发布。

xiami-downloader's People

Contributors

fooling avatar timothyqiu avatar zer4tul avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.