This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All the configuration is done on the file | |
# It attempts to download tracks based on id, which I assume it's automatically incremented | |
# Very naive but it works | |
# Some of the code is based on code found in stackoverflow.com, all make it obvious in another revision | |
# TODO: Make the progress display better | |
import urllib2, lxml.html, traceback | |
from lxml.cssselect import CSSSelector | |
from sys import stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import sys, subprocess, os | |
from subprocess import PIPE, Popen | |
from threading import Thread | |
from Queue import Queue, Empty | |
def enqueue_output(out, queue): | |
for line in iter(out.readline, b''): | |
queue.put(line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# log-default-2012-11-17.py | |
# IPython automatic logging file | |
# 17:33:23 | |
# ================================= | |
# ================================= | |
# 17:35:06 | |
# ================================= | |
# ================================= | |
# 17:36:39 |
NewerOlder