|
@@ -331,4 +331,7 @@ class CrawlerGzhSearchArticles(CrawlerGzhBaseStrategy):
|
|
|
hot_titles = await self.get_hot_titles_with_strategy(strategy)
|
|
hot_titles = await self.get_hot_titles_with_strategy(strategy)
|
|
|
for hot_title in hot_titles:
|
|
for hot_title in hot_titles:
|
|
|
print("hot title:", hot_title)
|
|
print("hot title:", hot_title)
|
|
|
- await self.search_each_title(hot_title)
|
|
|
|
|
|
|
+ try:
|
|
|
|
|
+ await self.search_each_title(hot_title)
|
|
|
|
|
+ except Exception as e:
|
|
|
|
|
+ print(f"crawler_gzh_articles error:{e}")
|