Add script for turning BayFiles URLs into wget-able URLs

master
Sven Slootweg 12 years ago
parent 049606f447
commit f6a89c207d

@ -0,0 +1,10 @@
#!/usr/bin/python
import sys, urllib2, re
contents = urllib2.urlopen(sys.argv[1]).read()
data = re.search('<a class="highlighted-btn" href="([^"]+)">Premium', contents)
url = data.group(1)
print url
Loading…
Cancel
Save