|
@@ -11,7 +11,7 @@ from cold_start.crawler.weixinCategoryCrawler import weixinCategory
|
|
|
from cold_start.publish.publishCategoryArticles import CategoryColdStartTask
|
|
|
from cold_start.filter.title_similarity_task import ColdStartTitleSimilarityTask
|
|
|
|
|
|
-DEFAULT_CATEGORY_LIST = ['1030-手动挑号', 'account_association']
|
|
|
+DEFAULT_CATEGORY_LIST = ['account_association']
|
|
|
|
|
|
|
|
|
|
|
@@ -118,8 +118,8 @@ def main(date_str, category_list=None, article_source=None):
|
|
|
if task.init_db():
|
|
|
task.publish_article_task(category_list=category_list, article_source=article_source)
|
|
|
|
|
|
- if article_source == 'weixin':
|
|
|
- task.crawler_task(category_list=category_list, date_str=date_str)
|
|
|
+ # if article_source == 'weixin':
|
|
|
+ # task.crawler_task(category_list=category_list, date_str=date_str)
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
@@ -132,12 +132,12 @@ if __name__ == '__main__':
|
|
|
else:
|
|
|
run_date = datetime.date.today().isoformat()
|
|
|
|
|
|
- # 执行头条发布
|
|
|
- main(
|
|
|
- date_str=run_date,
|
|
|
- category_list=['history', 'tech', 'finance', 'entertainment'],
|
|
|
- article_source='toutiao'
|
|
|
- )
|
|
|
+ # # 执行头条发布
|
|
|
+ # main(
|
|
|
+ # date_str=run_date,
|
|
|
+ # category_list=['history', 'tech', 'finance', 'entertainment'],
|
|
|
+ # article_source='toutiao'
|
|
|
+ # )
|
|
|
|
|
|
# 执行微信抓取发布
|
|
|
main(date_str=run_date)
|