Coder Social home page Coder Social logo

python-rdio-export's People

Contributors

jtan189 avatar twaddington avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

aerickson jtan189

python-rdio-export's Issues

Migrate to OAuth2

You're receiving this email because you've created an Rdio API application that uses OAuth 1.0. We wanted you to know that we've recently launched OAuth 2.0 and we'll be removing support for OAuth 1.0. You'll need to switch your application to OAuth 2.0 for your application to continue working. Checkout the announcement on the blog for the full details.

http://blog.rdio.com/developers/2015/06/oauth-20-launch.html

https://github.com/requests/requests-oauthlib#the-oauth-2-workflow

Max retries exceeded with url /api/1/collection

Got this exception running rdio-export --user myusername:

Traceback (most recent call last):
  File "/usr/local/bin/rdio-export", line 109, in <module>
    sys.exit(main())
  File "/usr/local/bin/rdio-export", line 95, in main
    for t in exporter.collection(user):
  File "/usr/local/lib/python2.7/site-packages/rdio_export/exporter.py", line 88, in collection
    user=user.get('key'), sort=sort, start=start, count=count, extras=extras)
  File "/usr/local/lib/python2.7/site-packages/rdio_export/exporter.py", line 44, in _call
    headers=headers, data=data).json()
  File "/Library/Python/2.7/site-packages/requests/api.py", line 88, in post
    return request('post', url, data=data, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/adapters.py", line 375, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='services.rdio.com', port=443): Max retries exceeded with url: /api/1/collection (Caused by <class 'socket.error'>: [Errno 60] Operation timed out)

Documentation suggestions

Useful stuff, just a few suggestions for additions/modifications to your README:

  1. I didn't need to perform the publishing steps to get everything to work correctly...
  2. You should explain in the docs that the user's collection is printed to stdout, so users will know to redirect it to a file accordingly, e.g. rdio-export --email <email> > output.md
  3. You should also explain how to set the proper Rdio env vars (e.g. RDIO_CONSUMER_KEY and RDIO_CONSUMER_SECRET).

Not a genuine representation of a user's collection

The exporter outputs the albums of all the songs in a user's collection, as if the user's collection was comprised entirely of complete albums. A list of the tracks in a user's Collection would be more useful/accurate.

File bin/rdio-export is missing from git

The file bin/rdio-export, referenced in setup.py is missing from git.

$ python setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/rdio_export
copying rdio_export/exporter.py -> build/lib/rdio_export
copying rdio_export/__init__.py -> build/lib/rdio_export
running build_scripts
creating build/scripts-3.4
error: file '/home/hugo/tmp/python-rdio-export/bin/rdio-export' does not exist

rdio-export crashes with JSON parse error.

$ rdio-export -k XXX -s YYY -u hobarrera                                                              
Traceback (most recent call last):
  File "/usr/bin/rdio-export", line 96, in <module>
    sys.exit(main())
  File "/usr/bin/rdio-export", line 72, in main
    user = exporter.get_user(username=args.username)
  File "/usr/lib/python2.7/site-packages/rdio_export/exporter.py", line 50, in get_user
    return self._call('social', 'findUser', vanityName=username, extras=extras)
  File "/usr/lib/python2.7/site-packages/rdio_export/exporter.py", line 35, in _call
    auth=self.auth, data=data).json()
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 776, in json
    return json.loads(self.text, **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Q - CSV Option

Hi mate, how Can I extract in CSV format.

You script is amazing, I'm trying to use with Ivy (http://www.ivyishere.org/ivy) to migrate from Rdio to Spotify.

This website only accept CSV, iTunes XML or Artist + Titles.

Can you help me?

Ps.: Do you accept paypal donations?

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.