Skip to main content

A command-line utility for exporting an Rdio collection.

Project description

https://img.shields.io/pypi/dm/python-rdio-export.svg

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

python-rdio-export-1.3.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

python_rdio_export-1.3.0-py2.py3-none-any.whl (15.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python-rdio-export-1.3.0.tar.gz.

File metadata

File hashes

Hashes for python-rdio-export-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ba85e3b6bc752aa082cc74708d7e9f48658c5aab07b6b4a96e981c7508f63f42
MD5 31a49cd39d9b63aba941be511160fec6
BLAKE2b-256 1a6d5c0f77560de9ec077f06515f2ba920a36f649a5bd158d6c40d2edf82a621

See more details on using hashes here.

File details

Details for the file python_rdio_export-1.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_rdio_export-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b30e3b931b06197c03d28ec516893b2e42d15ffa61db98605584d787c252fb5
MD5 4edb22d0532093343948d84d2b7db664
BLAKE2b-256 33d060be097341bb14575d2e3b2c35fe9af494d4ee39eca75f5fe4b1120b979a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page