Beispiel #1
0
    def __init__(self):
        """
        update every 2 hour
        """

        CompanyTracker.__init__(self)
        self.trusted_source = dicts.get_trust_news_source()
        self.check_period = 2  # check every 2 hour
        init_kafka()
Beispiel #2
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.abstract = u'%s iOS榜单入围'
        self.rank_category = self.__load_rank_names()
        self.rank_catlog = {
            'free': u'免费榜',
            'grossing': u'畅销榜',
            'charge': u'收费榜'
        }
Beispiel #3
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.default_last_check = (datetime.now() -
                                   timedelta(days=90)).strftime('%Y-%m-%d')
        self.alias = {
            alias: dbutil.get_investor_name(self.db, iid)
            for iid, alias in dbutil.get_investor_gongshang_with_ids(
                self.db, *dbutil.get_online_investors(self.db))
        }
        self.online_vcs = dbutil.get_investor_gongshang_with_ids(
            self.db, *list(set(dbutil.get_online_investors(self.db))))
Beispiel #4
0
    def __init__(self):

        CompanyTracker.__init__(self)
Beispiel #5
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.abstract = u'与同类产品相比,%s Android数据表现 %s'
Beispiel #6
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.check_period = 2
        init_kafka()
Beispiel #7
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.abstract = u'本月%s共有%s篇新闻报道'
Beispiel #8
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.check_period = 90
        self.today = datetime.now()
        self.yesterday = self.today - timedelta(days=1)
Beispiel #9
0
 def __init__(self):
     """
     track dimension 7
     :return:
     """
     CompanyTracker.__init__(self)
Beispiel #10
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.recruit_management = [
            title.lower() for title in dicts.get_recruit_managment()
        ]
Beispiel #11
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.default_check_period = 2
Beispiel #12
0
    def __init__(self):

        CompanyTracker.__init__(self)
        self.max_2001_release_gap = 14