Ejemplo n.º 1
0
 def __init__(self):
     self.elementConstant = ElementConstant()
     self.getIpProxy = GetIpProxy()
     self.url = "https://bj.lianjia.com/ershoufang/pg{}/"
     self.infos = {}
     self.proxyServer = ()
     # 传参使用进行excle生成
     self.generate_excle = generate_excle()
     self.elementConstant = ElementConstant()
Ejemplo n.º 2
0
 def __init__(self, city, url=None):
     self.city = city
     self.elementConstant = ElementConstant()
     self.getIpProxy = GetIpProxy()
     if url == None:
         self.url = "https://%s.ke.com/chengjiao/pg{}/" % cityMap[self.city]
     else:
         self.url = url
     self.infos = {}
     self.proxyServer = ()
     # 传参使用进行excle生成
     self.generate_excle = generate_excle()
     self.elementConstant = ElementConstant()