request specific version of the wiki page

This commit is contained in:
ThomasV 2012-06-12 15:43:59 +04:00
parent 077bf77d1f
commit d511a57810
2 changed files with 3 additions and 1 deletions

View File

@ -1,2 +1,3 @@
ELECTRUM_VERSION = "0.57c"
SEED_VERSION = 4 # bump this everytime the seed generation is modified
TRANSLATION_ID = 27601 # version of the wiki page

View File

@ -1,8 +1,9 @@
#!/usr/bin/python
import urllib2, os
from lib.version import TRANSLATION_ID
url = "https://en.bitcoin.it/wiki/Electrum/Translation?action=raw"
url = "https://en.bitcoin.it/w/index.php?title=Electrum/Translation&oldid=%d&action=raw"%TRANSLATION_ID
f = urllib2.urlopen(url)
lines = f.readlines()
dicts = {}