|
@@ -680,7 +680,10 @@ class XiGuaAuthor:
|
|
return self.rule_dict
|
|
return self.rule_dict
|
|
|
|
|
|
def get_author_list(self):
|
|
def get_author_list(self):
|
|
- # 每轮只抓取定量的数据,到达数量后自己退出
|
|
|
|
|
|
+ """
|
|
|
|
+ 每轮只抓取定量的数据,到达数量后自己退出
|
|
|
|
+ 获取账号列表以及账号信息
|
|
|
|
+ """
|
|
# max_count = int(self.rule_dict.get("videos_cnt", {}).get("min", 300))
|
|
# max_count = int(self.rule_dict.get("videos_cnt", {}).get("min", 300))
|
|
for user_dict in self.user_list:
|
|
for user_dict in self.user_list:
|
|
# if self.download_count <= max_count:
|
|
# if self.download_count <= max_count:
|
|
@@ -707,12 +710,15 @@ class XiGuaAuthor:
|
|
# return
|
|
# return
|
|
|
|
|
|
def get_video_list(self, user_dict):
|
|
def get_video_list(self, user_dict):
|
|
|
|
+ """
|
|
|
|
+ 获取某个账号的视频列表
|
|
|
|
+ """
|
|
offset = 0
|
|
offset = 0
|
|
signature = random_signature()
|
|
signature = random_signature()
|
|
url = "https://www.ixigua.com/api/videov2/author/new_video_list?"
|
|
url = "https://www.ixigua.com/api/videov2/author/new_video_list?"
|
|
while True:
|
|
while True:
|
|
if user_dict['link'][0] == "V":
|
|
if user_dict['link'][0] == "V":
|
|
- link = user_dict["link"][2:]
|
|
|
|
|
|
+ link = user_dict["link"][3:]
|
|
else:
|
|
else:
|
|
link = user_dict["link"]
|
|
link = user_dict["link"]
|
|
to_user_id = str(link.replace("https://www.ixigua.com/home/", ""))
|
|
to_user_id = str(link.replace("https://www.ixigua.com/home/", ""))
|