|
@@ -15,11 +15,11 @@ from applications import bot
|
|
|
from applications import log
|
|
|
from applications import longArticlesMySQL
|
|
|
from applications import WeixinSpider
|
|
|
-from applications.const import WeixinVideoCrawlerConst
|
|
|
+from applications.const import AccountAssociationTaskConst
|
|
|
from applications.functions import Functions
|
|
|
from config import apolloConfig
|
|
|
|
|
|
-const = WeixinVideoCrawlerConst()
|
|
|
+const = AccountAssociationTaskConst()
|
|
|
function = Functions()
|
|
|
config = apolloConfig()
|
|
|
|
|
@@ -76,7 +76,7 @@ class AccountAssociationCrawler(object):
|
|
|
AND t1.view_count > {const.MIN_READ_COUNT}
|
|
|
AND publish_timestamp > {publish_timestamp_threshold}
|
|
|
ORDER BY read_rate DESC
|
|
|
- LIMIT 100;
|
|
|
+ LIMIT {const.SEED_TITLE_LIMIT};
|
|
|
"""
|
|
|
article_obj_list = self.db_client.select(sql, cursor_type=DictCursor)
|
|
|
return article_obj_list
|