Commit 61a8d894 authored by liyang's avatar liyang

fix:爬取数据入库

parent 168c7992
...@@ -69,7 +69,7 @@ def reptile(browser=None, search_word=""): ...@@ -69,7 +69,7 @@ def reptile(browser=None, search_word=""):
# log.debug(classify_item_list) # log.debug(classify_item_list)
length = len(classify_item_list) length = len(classify_item_list)
for index in range(length): for index in range(length):
if 0 < index < 2: if 1 < index < 3:
classify_item_list[index].click() classify_item_list[index].click()
# if index==0: # if index==0:
time.sleep(1) time.sleep(1)
......
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