Ejemplo n.º 1
0
 def __init__(self,targeturl,transaction_name):
     self._targeturl = targeturl
     self._relatedsites = []       
     self._categorized_sites = {}
     self._transaction_name = transaction_name
     self._category_name= ''
     self._mylog = log.myLogger(self.__class__.__name__)
Ejemplo n.º 2
0
 def __init__(self, targeturl, transaction_name):
     self._targeturl = targeturl
     self._relatedsites = []
     self._categorized_sites = {}
     self._transaction_name = transaction_name
     self._category_name = ''
     self._mylog = log.myLogger(self.__class__.__name__)
Ejemplo n.º 3
0
 def __init__(self, exepath, inputfile, outputfile):
     self._exepath = exepath
     self._inputfile = inputfile
     self._outputfile = outputfile
     self._relatedurls = []
     self._categorized_url = {}
     self._rm_quoat = lambda val: re.sub(r'\"', '', val)
     self._mylog = log.myLogger(self.__class__.__name__)
Ejemplo n.º 4
0
 def __init__(self,exepath,inputfile,outputfile):
     self._exepath =exepath
     self._inputfile = inputfile
     self._outputfile = outputfile
     self._relatedurls = []
     self._categorized_url = {}
     self._rm_quoat   = lambda val: re.sub(r'\"','',val)
     self._mylog = log.myLogger(self.__class__.__name__)
Ejemplo n.º 5
0
def callhoge(cmd, *args):
    mylog = log.myLogger(sys._getframe().f_code.co_name)
    try:
        cmdline = str(cmd) + " " + " ".join(args)
        ret = subprocess.check_call(cmdline.strip())
        return ret

    except Exception as e:
        mylog.error("exception raised!" + e.message + " cmdname=>" + cmdline)
        raise Exception(e)
Ejemplo n.º 6
0
def callhoge(cmd,*args):
    mylog = log.myLogger(sys._getframe().f_code.co_name)
    try:
        cmdline = str(cmd) + " " + " ".join(args)
        ret = subprocess.check_call( cmdline.strip() )
        return ret

    except Exception as e:
        mylog.error("exception raised!" + e.message + " cmdname=>" + cmdline)
        raise Exception(e)
Ejemplo n.º 7
0
 def __init__(self):
     self._targeturl = ""
     self._relatedurl = []
     self.__pages = 0
     self.__currentpage = 1
     self._mylog = log.myLogger(self.__class__.__name__)
Ejemplo n.º 8
0
 def __init__(self):
     self._relatedsite = {}
     self._mylog = log.myLogger(self.__class__.__name__)
Ejemplo n.º 9
0
 def __init__(self):
     self._targeturl = ""
     self._relatedurl = []
     self.__pages = 0
     self.__currentpage = 1
     self._mylog = log.myLogger(self.__class__.__name__)
Ejemplo n.º 10
0
 def __init__(self):
     self._relatedsite = {}
     self._mylog = log.myLogger(self.__class__.__name__)