Пример #1
0
 def __init__(self):
     super(ChinaXueqiuFinanceSpider, self).__init__()
     self.cookies = get_cookies()# 获取接口cookies
     self.crawl_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
     self.stocks = get_stock('china_data_source')
Пример #2
0
 def __init__(self):
     super(ChinaSinaNoticeSpider, self).__init__()
     self.crawl_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
     self.stocks = get_stock('china_data_source')
 def __init__(self):
     super(InstitutionHoldSpider, self).__init__()
     self.crawl_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
     self.stocks = get_stock('china_data_source')
Пример #4
0
 def __init__(self):
     super(HkchOwnershipSpider, self).__init__()
     self.crawl_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
     self.stocks = get_stock('hk_data_source')
 def __init__(self):
     super(CompanyDetailSpider,self).__init__()
     self.driver = webdriver.Chrome(options=self.chrome_options)
     self.crawl_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
     self.stocks = get_stock('china_data_source')
     dispatcher.connect(self.closeSpider,signals.spider_closed)