摘要: # -*- ecoding: utf-8 -*- # @ModuleName: test004 # @Function: # @Author: darling # @Time: 2022-04-15 17:46 import requests # linux执行登陆请调用下面的这句 def get_ 阅读全文
posted @ 2022-04-18 19:34 darling331 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 获取指定html的标签内容 打开网页的开发者模式,得到路径标签,然后加上/text() 即可得到标签的文本内容 //*[@id="sonsyuanwen"]/div[1]/h1 对于网页爬取来说,还是很方便的 # -*- ecoding: utf-8 -*- # @ModuleName: test0 阅读全文
posted @ 2022-04-18 19:30 darling331 阅读(976) 评论(0) 推荐(0) 编辑