Skip to content

Instantly share code, notes, and snippets.

@jinie
Created July 14, 2013 00:22
Show Gist options
  • Save jinie/5992705 to your computer and use it in GitHub Desktop.
Save jinie/5992705 to your computer and use it in GitHub Desktop.
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