用于导出RDIO集合的命令行实用程序。
python-rdio-export的Python项目详细描述
此导出器可用于备份RDIO用户的集合。它 包括命令行实用程序脚本和用于绑定到 你自己的申请。命令行实用程序将输出结果 默认为标准输出。
如果你喜欢这个图书馆,而且它节省了你一些时间,请考虑 以Gittip donation支持进一步的开发!
要求
- 请求
- 请求
安装
$ pip install python-rdio-export
身份验证
您需要从Rdio developer site获取api凭据。
使用命令行实用程序时,可以使用rdio进行身份验证 三种方法之一。
首先,通过向命令行实用程序提供凭据 直接:
$ rdio-export --user twaddington --id your_client_id --secret your_client_secret
您还可以(可选)通过两个环境提供rdio凭据 变量:
$ export RDIO_CLIENT_ID=your_client_id $ export RDIO_CLIENT_SECRET=your_client_secret
还可以(可选)通过全局配置提供rdio凭据
文件位于~/.rdioconfig
中,格式为:
[Rdio] rdioClientId=your_client_key rdioClientSecret=your_client_secret
Note: Credentials are parsed in the order listed above. For example, the script will first attempt to use credentials provided via the--id
and--secret
arguments. Next, credentials will be loaded from the environment variables. Finally, the config file will be examined for credentials.
示例
Note: Results will be printed to stdout by default.
按用户名导出:
$ rdio-export --user twaddington
通过电子邮件导出:
$ rdio-export --email tristan.waddington@gmail.com
导出到文件:
$ rdio-export --user twaddington > rdio-backup.txt
错误报告
如果您遇到任何问题,请在项目的 GitHub page。
许可证
Copyright 2014 Tristan Waddington Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.