import os import sys sys.path.append(os.getcwd()) from application.spider.crawler_offline import * class SpiderHome(object): @classmethod def run_xng_plus(cls): rule_dict1 = { "period": {"min": 365, "max": 365}, "duration": {"min": 30, "max": 1800}, "favorite_cnt": {"min": 0, "max": 0}, "videos_cnt": {"min": 5000, "max": 0}, "share_cnt": {"min": 0, "max": 0}, } XiaoNianGaoPlusRecommend( "recommend", "xiaoniangaoplus", "prod", rule_dict1, [64120158, 64120157, 63676778], )