Small optimization
This commit is contained in:
parent
d6db3256f9
commit
45351d57c9
1 changed files with 1 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class FreeKeyboard(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, basepage):
|
def __init__(self, basepage):
|
||||||
self.basepage = None
|
self.basepage = basepage
|
||||||
self.fingerprints = []
|
self.fingerprints = []
|
||||||
for htmlimg in basepage.document.xpath('//img[@class="ident_chiffre_img pointer"]'):
|
for htmlimg in basepage.document.xpath('//img[@class="ident_chiffre_img pointer"]'):
|
||||||
url = htmlimg.attrib.get("src")
|
url = htmlimg.attrib.get("src")
|
||||||
|
|
@ -64,7 +64,6 @@ class FreeKeyboard(object):
|
||||||
s += "0"
|
s += "0"
|
||||||
|
|
||||||
self.fingerprints.append(s)
|
self.fingerprints.append(s)
|
||||||
self.basepage = basepage
|
|
||||||
if self.DEBUG:
|
if self.DEBUG:
|
||||||
image.save('/tmp/' + s + '.png')
|
image.save('/tmp/' + s + '.png')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue