
link, redirect, file.... whatever... ... just something wget is able to fetch without bigger troubles and not much code around it. ;-) I'll use the version.txt file inside the zip file for version checking lateron. Cheers Patrik On 31.01.2014 16:29, Bernd Weigelt wrote:
Am Freitag, 31. Januar 2014, 15:37:50 schrieb Patrik Brunner:
So one could always download the latest file from the paths ./bounds/latest/bounds.zip and ./sea/latest/sea.zip
Not sure how complex it is to achieve this during your automated generation/preparation/publishing, but guessing from my scripting experience it shouldn't be that hard. I think is better to use a link, named bounds.zip, to the latest file, with my python script i check for the date in latest/
if config.get('navmap', 'sea') == "latest": target = http.client.HTTPConnection("osm2.pleiades.uni-wuppertal.de") target.request("GET", "/sea/latest/") htmlcontent = target.getresponse() data = htmlcontent.read() data = data.decode('utf8') pattern = re.compile('sea_201\d{5}.zip') sea_rev_pre = sorted(pattern.findall(data), reverse=True)[1] sea_rev = os.path.splitext(os.path.basename(sea_rev_pre))[0] target.close()
config.set('navmap', 'sea_rev', (sea_rev))
m2c Bernd