Traceback (most recent call last):
File "C:\Users\Administrator\PycharmProjects\pythonProject\爬虫\bs4.py", line 13, in
title=li.xpath('./div[2]/h2/a/text()')[0]
IndexError: list index out of range
Process finished with exit code 1
Traceback (most recent call last):
File "C:\Users\Administrator\PycharmProjects\pythonProject\爬虫\bs4.py", line 13, in
title=li.xpath('./div[2]/h2/a/text()')[0]
IndexError: list index out of range
Process finished with exit code 1