|
@@ -73,7 +73,7 @@ class ToutiaoAccountCrawler(CrawlerAccounts):
|
|
|
video_item.add("platform", "toutiao")
|
|
|
video_item.add("recommend_video_id", video["id"])
|
|
|
video_item.add("title", video["title"])
|
|
|
- video_item.add("read_cnt", video["read_count"])
|
|
|
+ video_item.add("read_cnt", video.get("read_count"))
|
|
|
video_item.add("duration", video["video_duration"])
|
|
|
video_item.add("seed_account", seed_account_name)
|
|
|
video_item.add("seed_title", seed_title)
|
|
@@ -109,7 +109,7 @@ class ToutiaoAccountCrawler(CrawlerAccounts):
|
|
|
self.get_recommend_video_list(seed_video)
|
|
|
except Exception as e:
|
|
|
log(
|
|
|
- task="{}_recommendation_crawler".format(seed_video["platform"]),
|
|
|
+ task="toutiao_recommendation_crawler",
|
|
|
function="save_each_recommendation",
|
|
|
message="save recommendation failed",
|
|
|
data={
|