Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"1"},"geometry":{"type":"Polygon","coordinates":[[[19.65,41.7],[19.5,41.7],[19.65,41.7],[19.65,41.7]]]}},{"type":"Feature","properties":{"id":"1"},"geometry":{"type":"Polygon","coordinates":[[[20.25,41.4],[19.5,40.95],[19.35,41.4],[19.65,41.55],[19.5,41.7],[19.65,41.85],[19.35,41.85],[19.35,42.3],[19.65,42.6],[20.55,42.3],[20.55,41.25],[20.25,41.4]]]}},{"type":"Feature","properties":{"id":"2"},"geometry":{"type":"Polygon","coordinates":[[[20.7,41.1],[21,40.95],[21,40.5],[20.7,40.05],[20.25,40.05],[20.4,39.9],[20.25,39.6],[19.95,40.05],[19.35,40.2],[19.5,41.1],[20.25,41.4],[20.7,41.1]]]}},{"type":"Feature","properties":{"id":"3"},"geometry":{"type":"Polygon","coordinates":[[[1.65,42.6],[1.8,42.6],[1.65,42.45],[1.5,42.45],[1.35,42.45],[1.65,42.6]]]}},{"type":"Feature","properties":{"id":"4"},"geometry":{"type":"Polygon","coordinates":[[[18.15,44.55],[18.45,44.55],[18.15,44.7],[18.45,45],[19.05,44.85],[18.75,44.85],[19.05,44.4],[18.3,43
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import re
import subprocess
with open("playlists.txt", "r") as ins:
for url in ins:
print(url.strip())
cmd="./spotdl.py --playlist "+url
process=subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
output = process.stdout.read().decode('utf-8')