Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to download your rdio collection. Note that this might not be legal in your country. It also might be against rdio's TOS.
- 1. Open your collection and run this:
- var data = {}; setInterval(function () { $('.item_link').each(function () { data[$(this).attr('href')] = ''; }); }, 2000);
- 2. Scroll down, slowly, until you reach the end of the page
- 3. Run JSON.stringify(data) and save it as data.json
- 4. Install https://github.com/ravishi/rdio-dl
- 5. Run the script below with Node.js (replace username and password)
- var fs = require('fs');
- var execSync = require('child_process').execSync;
- var data = JSON.parse(fs.readFileSync(process.cwd() + '/data.json', 'utf8'));
- var failed = [];
- Object.keys(data).forEach(function (key) {
- console.log(key);
- var path = key.replace('artist\/', '').replace('album\/', '');
- try { fs.mkdirSync(process.cwd() + '/' + path.split('\/')[1]); } catch (e) {};
- try { fs.mkdirSync(process.cwd() + path); } catch(e) { return; }
- process.chdir('.' + path);
- try {
- execSync('rdio-dl -u USERNAME -p PASSWORD "https://www.rdio.com' + key + '"');
- } catch(e) {
- console.log(e);
- failed.push(key);
- }
- process.chdir('../../');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement