|
@@ -87,7 +87,8 @@ class WeixinVideoCrawler(object):
|
|
|
select_sql = f"""
|
|
|
SELECT gh_id, account_name, latest_crawler_timestamp
|
|
|
FROM weixin_account_for_videos
|
|
|
- WHERE status = {const.ACCOUNT_CRAWL_STATUS};
|
|
|
+ WHERE status = {const.ACCOUNT_CRAWL_STATUS}
|
|
|
+ ORDER BY latest_crawler_timestamp;
|
|
|
"""
|
|
|
response = self.db_client.select(select_sql, DictCursor)
|
|
|
return response
|
|
@@ -158,6 +159,7 @@ class WeixinVideoCrawler(object):
|
|
|
url_unique = functions.generateGzhId(article_url)
|
|
|
# 判断该视频链接是否下载,若已经下载则直接跳过
|
|
|
if self.is_downloaded(url_unique):
|
|
|
+ print("url exists")
|
|
|
continue
|
|
|
|
|
|
title = article.get("Title", None)
|