def __init__(self, page): self.img_id = page.doc.find("//input[@id='identifiantClavierVirtuel']").attrib['value'] img = page.doc.find("//img[@id='clavier_virtuel']") res = page.browser.open('/portal/rest/clavier_virtuel/%s' % self.img_id) MappedVirtKeyboard.__init__(self, BytesIO(res.content), page.doc, img, (0, 0, 0), convert='RGB') self.check_symbols(self.symbols, page.browser.responses_dirname)
def __init__(self,basepage): img=basepage.document.find("//img[@usemap='#MapGril']") MappedVirtKeyboard.__init__(self,basepage.browser.openurl(self.url % time.time()),basepage.document,img,self.color) if basepage.browser.responses_dirname is None: basepage.browser.responses_dirname = \ tempfile.mkdtemp(prefix='weboob_session_') self.check_symbols(self.symbols,basepage.browser.responses_dirname)
def __init__(self,basepage): img=basepage.document.find("//img[@id='idImageClavier']") random.seed() self.url+="%s"%str(long(math.floor(long(random.random()*1000000000000000000000)))) MappedVirtKeyboard.__init__(self,basepage.browser.openurl(self.url), basepage.document,img,self.color,"id") self.check_symbols(self.symbols,basepage.browser.responses_dirname)
def __init__(self, basepage): img = basepage.document.find("//img[@id='idImageClavier']") random.seed() self.url += "%s" % str( long(math.floor(long(random.random() * 1000000000000000000000)))) MappedVirtKeyboard.__init__(self, basepage.browser.openurl(self.url), basepage.document, img, self.color, "id") self.check_symbols(self.symbols, basepage.browser.responses_dirname)
def __init__(self, page): key = page.document.getroot().xpath('//input')[0].value page.browser.login_key = key img = page.document.getroot().xpath('//img')[0] img_url = 'https://www.axa.fr/.sendvirtualkeyboard.png?key=' + key img_file = page.browser.openurl(img_url) MappedVirtKeyboard.__init__(self, img_file, page.document, img, self.color) self.check_symbols(self.symbols, page.browser.responses_dirname)
def __init__(self, page): key = page.document.getroot().xpath("//input")[0].value page.browser.login_key = key img = page.document.getroot().xpath("//img")[0] img_url = "https://www.axa.fr/.sendvirtualkeyboard.png?key=" + key img_file = page.browser.openurl(img_url) MappedVirtKeyboard.__init__(self, img_file, page.document, img, self.color) self.check_symbols(self.symbols, page.browser.responses_dirname)
def __init__(self, basepage): img = basepage.document.find("//img[@usemap='#MapGril']") MappedVirtKeyboard.__init__( self, basepage.browser.openurl(self.url % time.time()), basepage.document, img, self.color) if basepage.browser.responses_dirname is None: basepage.browser.responses_dirname = \ tempfile.mkdtemp(prefix='weboob_session_') self.check_symbols(self.symbols, basepage.browser.responses_dirname)
def __init__(self, page, vkid): img = page.doc.find('//img[@id="clavier_virtuel"]') res = page.browser.open("/portal/rest/clavier_virtuel/%s" % vkid) MappedVirtKeyboard.__init__(self, BytesIO(res.content), page.doc, img, self.color, convert='RGB') self.check_symbols(self.symbols, None)
def __init__(self, page): img = page.doc.find('//img[@usemap="#gridpass_map_name"]') res = page.browser.open(img.attrib['src']) MappedVirtKeyboard.__init__(self, BytesIO(res.content), page.doc, img, self.color, convert='RGB') self.check_symbols(self.symbols, None)
def __init__(self, basepage): img = basepage.doc.xpath('//img[@id="gridpass_img"]')[0] imgdata = basepage.browser.open(img.attrib['src']).content MappedVirtKeyboard.__init__(self, BytesIO(imgdata), basepage.doc, img, self.color, convert='RGB') self.check_symbols(self.symbols, basepage.browser.responses_dirname)
def __init__(self, page): img = page.document.find("//img[@usemap='#login-pad_map']") img_file = page.browser.openurl(img.attrib['src']) MappedVirtKeyboard.__init__(self, img_file, page.document, img, self.color, convert='RGB') self.check_symbols(self.symbols, page.browser.responses_dirname)
def __init__(self, page): img = page.doc.find("//img[@usemap='#cv']") res = page.browser.open(img.attrib['src']) MappedVirtKeyboard.__init__(self, BytesIO(res.content), page.doc, img, self.color, 'href', convert='RGB') self.check_symbols(self.symbols, page.browser.responses_dirname)
def __init__(self, page): img = page.doc.find("//img[@usemap='#cv']") res = page.browser.open(img.attrib["src"]) MappedVirtKeyboard.__init__(self, StringIO(res.content), page.doc, img, self.color, "href", convert="RGB") self.check_symbols(self.symbols, page.browser.responses_dirname)
def __init__(self, basepage): img = basepage.document.find("//img[@usemap='#MapGril']") imgdata = basepage.browser.openurl(img.attrib['src']) MappedVirtKeyboard.__init__(self, imgdata, basepage.document, img, self.color) self.check_symbols(self.symbols, basepage.browser.responses_dirname)
def __init__(self, basepage): img = basepage.document.find("//img[@usemap='#MapGril']") MappedVirtKeyboard.__init__( self, basepage.browser.openurl(self.url % time.time()), basepage.document, img, self.color) self.check_symbols(self.symbols, basepage.browser.responses_dirname)
def __init__(self, page): img = page.document.find("//img[@usemap='#cv']") img_file = page.browser.openurl(img.attrib['src']) MappedVirtKeyboard.__init__(self, img_file, page.document, img, self.color, 'href', convert='RGB') self.check_symbols(self.symbols, page.browser.responses_dirname)
def __init__(self, img_file, doc, img): MappedVirtKeyboard.__init__(self, img_file, doc, img, self.color) self.check_symbols(self.symbols, None)
def __init__(self, basepage): img=basepage.document.find("//img[@usemap='#MapGril']") MappedVirtKeyboard.__init__(self, basepage.browser.openurl(self.url % time.time()), basepage.document, img, self.color) self.check_symbols(self.symbols, basepage.browser.responses_dirname)
def __init__(self, basepage): img = basepage.doc.xpath('//img[@id="gridpass_img"]')[0] imgdata = basepage.browser.open(img.attrib['src']).content MappedVirtKeyboard.__init__(self, StringIO(imgdata), basepage.doc, img, self.color, convert='RGB') self.check_symbols(self.symbols, basepage.browser.responses_dirname)