url = "https://www.tyhttp.com/free/page1/"
response = requests.get(url, verify=False)
response.encoding = response.apparent_encoding
tree=etree.HTML(response.text)
ip_list = tree.xpath('//div[@class="td td-4"]/text()')[3:]
duankou_list = tree.xpath('//div[@class="td td-2"]/text()')[5:]