forked from ckorn/Upstream-watchers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The download page just uses id's in the link. The version is only shown as text. Parse this version and add it to the URL of the download page. This will 404 but you will be on the right way.
- Loading branch information
Christoph Korn
committed
Nov 15, 2013
1 parent
6aea19e
commit 69edfee
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/python | ||
import urllib2 | ||
import re | ||
|
||
r=urllib2.urlopen("http://games.aleva.com.br/jwltief/") | ||
html=r.read() | ||
|
||
finder=re.compile('(?:.*)<a href="(?:[^"]+)">Jwltief (?P<version>[\d\.]+) Linux \(Debian/Ubuntu\)</a>(?:.*)', re.DOTALL) | ||
m=finder.match(html) | ||
if m: | ||
v=m.group('version') | ||
print "<a href='http://games.aleva.com.br/jwltief/%s'>%s</a>"%(v,v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters