代码如下:
import requests
from lxml import etree
# 获取链接
url = 'https://www.*****.com/tuili/9696/xxxxx.html'
while True:
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36'
}
resp = requests.get