Commit b757e70a authored by liyang's avatar liyang

fix:富文本video解析

parent 00b24977
...@@ -29,7 +29,7 @@ def reptile(browser=None, search_word=""): ...@@ -29,7 +29,7 @@ def reptile(browser=None, search_word=""):
# print(classify_item_list) # print(classify_item_list)
length = len(classify_video_list) length = len(classify_video_list)
for index in range(length): for index in range(length):
if -1 < index < length: if 0 <= index < length:
title = classify_video_list[index].get_attribute('title') title = classify_video_list[index].get_attribute('title')
link = classify_video_list[index].get_attribute('href') link = classify_video_list[index].get_attribute('href')
# yt = YouTube(link) # yt = YouTube(link)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment