diff --git a/checkmarket2.py b/checkmarket2.py index d1568291..6fd61c2c 100755 --- a/checkmarket2.py +++ b/checkmarket2.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # checkmarket2.py - part of the FDroid server tools -# Copyright (C) 2010-11, Ciaran Gultnieks, ciaran@ciarang.com +# Copyright (C) 2010-12, Ciaran Gultnieks, ciaran@ciarang.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -44,49 +44,45 @@ html_parser = HTMLParser.HTMLParser() for app in apps: - if app['disabled']: - print "Skipping %s: disabled" % app['id'] + print "Processing " + app['id'] + url = 'http://market.android.com/details?id=' + app['id'] + page = urllib.urlopen(url).read() + + version = None + vercode = None + + m = re.search('