spider_scheduler.py 640 B

12345678910111213141516171819202122232425
  1. import os
  2. import sys
  3. sys.path.append(os.getcwd())
  4. from application.spider.crawler_offline import *
  5. class SpiderHome(object):
  6. @classmethod
  7. def run_xng_plus(cls):
  8. rule_dict1 = {
  9. "period": {"min": 365, "max": 365},
  10. "duration": {"min": 30, "max": 1800},
  11. "favorite_cnt": {"min": 0, "max": 0},
  12. "videos_cnt": {"min": 5000, "max": 0},
  13. "share_cnt": {"min": 0, "max": 0},
  14. }
  15. XiaoNianGaoPlusRecommend(
  16. "recommend",
  17. "xiaoniangaoplus",
  18. "prod",
  19. rule_dict1,
  20. [64120158, 64120157, 63676778],
  21. )