|
@@ -98,18 +98,19 @@ class Material():
|
|
|
for row in data[1:]:
|
|
|
channel_id = row[1]
|
|
|
channel_url = str(row[2])
|
|
|
- piaoquan_id = row[3]
|
|
|
- number = row[4]
|
|
|
- video_share = row[5]
|
|
|
- video_ending = row[6]
|
|
|
- voice = row[7]
|
|
|
- crop_tool = row[8]
|
|
|
- gg_duration = row[9]
|
|
|
- title = row[10]
|
|
|
+ tags = row[3]
|
|
|
+ piaoquan_id = row[4]
|
|
|
+ number = row[5]
|
|
|
+ video_share = row[6]
|
|
|
+ video_ending = row[7]
|
|
|
+ voice = row[8]
|
|
|
+ crop_tool = row[9]
|
|
|
+ gg_duration = row[10]
|
|
|
+ title = row[11]
|
|
|
if channel_url == None or channel_url == "" or len(channel_url) == 0:
|
|
|
continue
|
|
|
- first_category = row[12] # 一级品类
|
|
|
- secondary_category = row[13] # 二级品类
|
|
|
+ first_category = row[13] # 一级品类
|
|
|
+ secondary_category = row[14] # 二级品类
|
|
|
def count_items(item, separator):
|
|
|
if item and item not in {'None', ''}:
|
|
|
return len(item.split(separator))
|
|
@@ -120,10 +121,10 @@ class Material():
|
|
|
values = [channel_id, video_id_total, piaoquan_id, video_share, video_ending_total, crop_tool, gg_duration, title_total, first_category]
|
|
|
filtered_values = [str(value) for value in values if value is not None and value != "None"]
|
|
|
task_mark = "_".join(map(str, filtered_values))
|
|
|
- keyword_sort = row[14] # 排序条件
|
|
|
- keyword_time = row[15] # 发布时间
|
|
|
- keyword_duration = row[16] # 视频时长
|
|
|
- keyword_name = row[17] # 负责人
|
|
|
+ keyword_sort = row[15] # 排序条件
|
|
|
+ keyword_time = row[16] # 发布时间
|
|
|
+ keyword_duration = row[17] # 视频时长
|
|
|
+ keyword_name = row[18] # 负责人
|
|
|
keyword_sort_list = keyword_sort.split(',')
|
|
|
keyword_duration_list = keyword_duration.split(',')
|
|
|
keyword_time_list = keyword_time.split(',')
|
|
@@ -149,7 +150,9 @@ class Material():
|
|
|
"first_category": first_category, # 一级品类
|
|
|
"secondary_category": secondary_category, # 二级品类
|
|
|
"combo": combo, # 搜索条件
|
|
|
- "keyword_name": keyword_name # 品类负责人
|
|
|
+ "keyword_name": keyword_name, # 品类负责人
|
|
|
+ "tags": tags
|
|
|
+
|
|
|
}
|
|
|
processed_list.append(json.dumps(number_dict, ensure_ascii=False))
|
|
|
except:
|
|
@@ -169,22 +172,23 @@ class Material():
|
|
|
for row in data[1:]:
|
|
|
channel_id = row[1]
|
|
|
channel_url = str( row[2] )
|
|
|
- piaoquan_id = row[3]
|
|
|
- number = row[4]
|
|
|
- video_share = row[5]
|
|
|
- video_ending = row[6]
|
|
|
- voice = row[7]
|
|
|
- crop_tool = row[8]
|
|
|
- gg_duration = row[9]
|
|
|
- title = row[10]
|
|
|
+ tags = row[3]
|
|
|
+ piaoquan_id = row[4]
|
|
|
+ number = row[5]
|
|
|
+ video_share = row[6]
|
|
|
+ video_ending = row[7]
|
|
|
+ voice = row[8]
|
|
|
+ crop_tool = row[9]
|
|
|
+ gg_duration = row[10]
|
|
|
+ title = row[11]
|
|
|
if channel_url == None or channel_url == "" or len( channel_url ) == 0:
|
|
|
continue
|
|
|
try:
|
|
|
- ls_number = int( row[11] )
|
|
|
+ ls_number = int( row[12] )
|
|
|
except:
|
|
|
ls_number = None
|
|
|
- first_category = row[12]
|
|
|
- name = row[13]
|
|
|
+ first_category = row[13]
|
|
|
+ name = row[14]
|
|
|
|
|
|
def count_items(item, separator):
|
|
|
if item and item not in {'None', ''}:
|
|
@@ -217,7 +221,8 @@ class Material():
|
|
|
"gg_duration_total": gg_duration,
|
|
|
"voice": voice,
|
|
|
"first_category": first_category, # 一级品类
|
|
|
- "keyword_name":name
|
|
|
+ "keyword_name":name,
|
|
|
+ "tags": tags
|
|
|
}
|
|
|
processed_list.append( json.dumps( number_dict, ensure_ascii=False ) )
|
|
|
if channel_id == "抖音" or channel_id == "快手" or channel_id == "视频号":
|
|
@@ -248,7 +253,8 @@ class Material():
|
|
|
"gg_duration_total": gg_duration,
|
|
|
"voice": voice,
|
|
|
"first_category": first_category, # 一级品类
|
|
|
- "keyword_name": name
|
|
|
+ "keyword_name": name,
|
|
|
+ "tags": tags
|
|
|
}
|
|
|
processed_list.append( json.dumps( number_dict, ensure_ascii=False ) )
|
|
|
else:
|
|
@@ -271,18 +277,19 @@ class Material():
|
|
|
for row in data[1:]:
|
|
|
channel_id = row[1]
|
|
|
channel_url = str(row[2])
|
|
|
- piaoquan_id = row[3]
|
|
|
- number = row[4]
|
|
|
- video_share = row[5]
|
|
|
- video_ending = row[6]
|
|
|
- voice = row[7]
|
|
|
- crop_tool = row[8]
|
|
|
- gg_duration = row[9]
|
|
|
- title = row[10]
|
|
|
+ tags = row[3]
|
|
|
+ piaoquan_id = row[4]
|
|
|
+ number = row[5]
|
|
|
+ video_share = row[6]
|
|
|
+ video_ending = row[7]
|
|
|
+ voice = row[8]
|
|
|
+ crop_tool = row[9]
|
|
|
+ gg_duration = row[10]
|
|
|
+ title = row[11]
|
|
|
if channel_url == None or channel_url == "" or len(channel_url) == 0:
|
|
|
continue
|
|
|
try:
|
|
|
- ls_number = int(row[11])
|
|
|
+ ls_number = int(row[12])
|
|
|
except:
|
|
|
ls_number = None
|
|
|
def count_items(item, separator):
|
|
@@ -312,7 +319,8 @@ class Material():
|
|
|
"video_ending": video_ending,
|
|
|
"crop_total": crop_tool,
|
|
|
"gg_duration_total": gg_duration,
|
|
|
- "voice": voice
|
|
|
+ "voice": voice,
|
|
|
+ "tags":tags
|
|
|
}
|
|
|
processed_list.append(json.dumps(number_dict, ensure_ascii=False))
|
|
|
if channel_id == "抖音" or channel_id == "快手" or channel_id == "视频号":
|
|
@@ -339,7 +347,8 @@ class Material():
|
|
|
"video_ending": video_ending,
|
|
|
"crop_total": crop_tool,
|
|
|
"gg_duration_total": gg_duration,
|
|
|
- "voice": voice
|
|
|
+ "voice": voice,
|
|
|
+ "tags": tags
|
|
|
}
|
|
|
processed_list.append(json.dumps(number_dict, ensure_ascii=False))
|
|
|
else:
|