Skip to content

Instantly share code, notes, and snippets.

@jinie
Created Jul 14, 2013
Embed
What would you like to do?
import re
import sys
ex = re.compile("\"(url|referer)\"\:\"(.*)\"")
with open(sys.argv[1]) as f:
for line in iter(f.readline,""):
m = ex.search(line)
print(m.group(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment