Keybase proof
I hereby claim:
- I am eigilhs on github.
- I am eigilhs (https://keybase.io/eigilhs) on keybase.
- I have a public key ASB7hrpj-pcpo3dmVT1Lwl9V4vrK7nkQVBrNX3MHyrSvwgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os, re, sys | |
from urllib import FancyURLopener | |
class _StealthOpener(FancyURLopener): | |
version = 'Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) \ | |
Gecko/20120827 Firefox/10.0.7' |
#!/usr/bin/env python | |
import os, re, sys, urllib, random, datetime, time | |
root = "http://www.dilbert.com/" | |
address = root + "fast/" # today's strip | |
if len(sys.argv) == 2 and sys.argv[-1] != "-r": # specified strip | |
date = re.findall("\d\d\d\d\-\d\d\-\d\d", sys.argv[1].strip()) | |
if date: address += date[0] + "/" |
#!/usr/bin/env python | |
import os, re, sys, urllib | |
magic_key = r'</td><td><a href="(.+)">.+</a>.*</td><td align="right">' | |
def mine(root): | |
for line in urllib.urlopen(root): | |
for m in re.findall(magic_key, line): | |
if m != 'Parent Directory': |