|
@@ -8,7 +8,7 @@ from applications import longArticlesMySQL, bot
|
|
|
from coldStartTasks.crawler.weixinCategoryCrawler import weixinCategory
|
|
|
from coldStartTasks.publish.publishCategoryArticles import CategoryColdStartTask
|
|
|
|
|
|
-DEFAULT_CATEGORY_LIST = ['1030-手动挑号']
|
|
|
+DEFAULT_CATEGORY_LIST = ['account_association']
|
|
|
|
|
|
|
|
|
class AccountColdStartDailyTask(object):
|
|
@@ -98,7 +98,6 @@ class AccountColdStartDailyTask(object):
|
|
|
def main(category_list=None, article_source=None):
|
|
|
"""
|
|
|
main job, use crontab to do job daily
|
|
|
- todo: 1. 开放一个输入可以输入指定品类 2. 增加对指定账号的抓取&&发布
|
|
|
:return:
|
|
|
"""
|
|
|
if not category_list:
|
|
@@ -110,15 +109,18 @@ def main(category_list=None, article_source=None):
|
|
|
if article_source == 'weixin':
|
|
|
task.crawler_task(category_list=category_list)
|
|
|
|
|
|
- task.publish_task(category_list=category_list, article_source=article_source)
|
|
|
+ # task.publish_task(category_list=category_list, article_source=article_source)
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- # 执行微信抓取发布
|
|
|
main()
|
|
|
+ # # 执行微信抓取发布
|
|
|
+ # main()
|
|
|
+ #
|
|
|
+ # # 执行头条发布
|
|
|
+ # main(
|
|
|
+ # category_list=['history', 'tech', 'finance', 'entertainment'],
|
|
|
+ # article_source='toutiao'
|
|
|
+ # )
|
|
|
+
|
|
|
|
|
|
- # 执行头条发布
|
|
|
- main(
|
|
|
- category_list=['history', 'tech', 'finance', 'entertainment'],
|
|
|
- article_source='toutiao'
|
|
|
- )
|