Skip to content

Instantly share code, notes, and snippets.

View daanlouter's full-sized avatar

Daan Louter daanlouter

View GitHub Profile
@daanlouter
daanlouter / rdio_pl_export.js
Last active December 15, 2015 16:18
Export your Rdio Collection to a spotify playlist
javascript:(function() {
var bookmarklet = {
init: function() {
this.parse();
},
parse: function() {
page = "";
$(".Profile_Collection:visible")
.children(".centered_content")
.children(".collection")
from bs4 import BeautifulSoup
import requests
import csv
country_codes = [
"global", "gb", "ar", "at", "au", "be", "bo", "br", "ca", "ch", "cl", "co", "cr", "cz", "de", "dk", "do", "ec", "es", "fi", "fr", "gr", "gt", "hk", "hn", "hu", "id", "ie", "is", "it", "jp", "lt", "lv", "mx", "my", "nl", "no", "nz", "pa", "pe", "ph", "pl", "pt", "py", "se", "sg", "sk", "sv", "th", "tr", "tw", "us", "uy"
]
dates = [
"2018-01-02", "2018-01-01", "2017-12-31", "2017-12-30", "2017-12-29", "2017-12-28", "2017-12-27", "2017-12-26", "2017-12-25", "2017-12-24", "2017-12-23", "2017-12-22",