|
@@ -57,6 +57,8 @@ class Material():
|
|
|
channel = '快手-拼接类'
|
|
|
for row in kuaishou_pinjie[2:]:
|
|
|
account_link = row[1]
|
|
|
+ if account_link == None:
|
|
|
+ return
|
|
|
user_id = account_link.split("profile/")[1]
|
|
|
insert_sql = f"""INSERT INTO video_user_id (user_id, channel) values ('{user_id}', '{channel}')"""
|
|
|
MysqlHelper.update_values(
|
|
@@ -167,6 +169,19 @@ class Material():
|
|
|
id_list = MysqlHelper.get_values(id_list, "prod")
|
|
|
return id_list
|
|
|
|
|
|
+ # 获取音频类型
|
|
|
+ @classmethod
|
|
|
+ def get_pinjie_title(cls):
|
|
|
+ title_list = []
|
|
|
+ # 获取快手视频链接
|
|
|
+ pinjie_title = Feishu.get_values_batch("prod", "succinct", "hHfY4l")
|
|
|
+ # 提取账号昵称和账号主页链接
|
|
|
+ for row in pinjie_title[2:]:
|
|
|
+ title = row[2]
|
|
|
+ if title == None:
|
|
|
+ break
|
|
|
+ title_list.append(title)
|
|
|
+ return title_list
|
|
|
|
|
|
|
|
|
# 获取音频类型
|