コード例 #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')
コード例 #3
0
 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')
コード例 #5
0
 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)