Skip to content

Commit

Permalink
warsow.py: Domain changed from .net to .gg
Browse files Browse the repository at this point in the history
Also change to HTTPS.
  • Loading branch information
ckorn committed Dec 12, 2015
1 parent 7c910a3 commit ef2cb92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warsow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import httplib
import re
import urllib2
d = urllib2.urlopen("http://www.warsow.net/download").read()
d = urllib2.urlopen("https://www.warsow.gg/download").read()
v_finder=re.compile('<option value="(?P<warsow>warsow([\d]+))">', re.M)
m=v_finder.finditer(d)
if not m: sys.exit()
for link in m:
warsow=link.group("warsow")
conn = httplib.HTTPSConnection("www.warsow.net")
conn = httplib.HTTPSConnection("www.warsow.gg")
conn.request("HEAD", "/download?dl=%s"%(warsow))
res = conn.getresponse()
print "<!-- %d %s -->"%(res.status, res.reason)
Expand Down

0 comments on commit ef2cb92

Please sign in to comment.