A command-line utility for exporting an Rdio collection.
Project description
This exporter can be used to backup the collection of an Rdio user. It includes a command-line utility script and a library for bundling into your own applications. The command-line utility will output results to stdout by default.
If you like this library and it’s saved you some time, please consider supporting further development with a Gittip donation!
Requirements
requests
requests_oauthlib
Installing
$ pip install python-rdio-export
Authentication
You’ll need to acquire API credentials from the Rdio developer site.
When using the command-line utility you can authenticate with Rdio one of three ways.
First, by providing your credentials to the command-line utility directly:
$ rdio-export --user twaddington --id your_client_id --secret your_client_secret
You can also (optionally) provide your Rdio credentials via two environment variables:
$ export RDIO_CLIENT_ID=your_client_id $ export RDIO_CLIENT_SECRET=your_client_secret
You can also (optionally) provide your Rdio credentials via a global config
file located in ~/.rdioconfig
with the format:
[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.
Examples
Note: Results will be printed to stdout by default.
Export by username:
$ rdio-export --user twaddington
Export by email:
$ rdio-export --email tristan.waddington@gmail.com
Export to a file:
$ rdio-export --user twaddington > rdio-backup.txt
Bug reports
If you encounter any issues, please open a new issue on the project’s GitHub page.
License
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-rdio-export-1.3.0.tar.gz
.
File metadata
- Download URL: python-rdio-export-1.3.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba85e3b6bc752aa082cc74708d7e9f48658c5aab07b6b4a96e981c7508f63f42 |
|
MD5 | 31a49cd39d9b63aba941be511160fec6 |
|
BLAKE2b-256 | 1a6d5c0f77560de9ec077f06515f2ba920a36f649a5bd158d6c40d2edf82a621 |
File details
Details for the file python_rdio_export-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: python_rdio_export-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b30e3b931b06197c03d28ec516893b2e42d15ffa61db98605584d787c252fb5 |
|
MD5 | 4edb22d0532093343948d84d2b7db664 |
|
BLAKE2b-256 | 33d060be097341bb14575d2e3b2c35fe9af494d4ee39eca75f5fe4b1120b979a |