pax_global_header 0000666 0000000 0000000 00000000064 14042356110 0014506 g ustar 00root root 0000000 0000000 52 comment=18d41565f955028f9fcd2f6cc437f5f1cb717401
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-ipinfodb/ 0000775 0000000 0000000 00000000000 14042356110 0022571 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-ipinfodb/modules/ 0000775 0000000 0000000 00000000000 14042356110 0024241 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-ipinfodb/modules/ipinfodb/ 0000775 0000000 0000000 00000000000 14042356110 0026033 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-ipinfodb/modules/ipinfodb/__init__.py 0000664 0000000 0000000 00000000101 14042356110 0030134 0 ustar 00root root 0000000 0000000 from .module import IpinfodbModule
__all__ = ['IpinfodbModule']
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-ipinfodb/modules/ipinfodb/browser.py 0000664 0000000 0000000 00000002312 14042356110 0030066 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2015-2016 Julien Veyssier
#
# This file is part of a woob module.
#
# This woob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This woob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see .
from woob.browser import PagesBrowser
from woob.browser.url import URL
from woob.browser.profiles import Firefox
from .pages import LocationPage
__all__ = ['IpinfodbBrowser']
class IpinfodbBrowser(PagesBrowser):
PROFILE = Firefox()
TIMEOUT = 30
BASEURL = 'https://ipinfodb.com/'
home = URL('$', LocationPage)
def get_location(self, ipaddr):
self.home.go(data={'ip': ipaddr})
return self.page.get_location()
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-ipinfodb/modules/ipinfodb/favicon.png 0000664 0000000 0000000 00000010413 14042356110 0030165 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq sRGB bKGD pHYs tIME:' IDATx[k$UνU=ݙccbC H!+r "`$~ DlE8!x{^{y{QUÏ{g5b Jꪺ~9qy\Aԋ!] Yy9}=g =z A w#]қ)6,)@X J'HG3<_Rp:> ¢P, ~$ֿ 8q#XHZoֳ= ]#ߔg¯=;R7Sz}Qԣ rn q6 +cT*55]r !R g$צr$#~