使用lxml库的Xpath解析网页:http://www.tipdm.com/,并循环打印网页中的连接
日常作业,打下卡#-*- codeing = uft-8 -*-#@Time :2021/4/16 14:03#@file : 4.16FridayWork.py#@Software: PyCharmimport requests #导入用到的requests库import time #time库可用可不用from lxml import htmletree = html.etreeurl = "http://www.tipdm.com/"result = requests.
原创
2021-04-16 20:59:55 ·
753 阅读 ·
0 评论