摘要: import os #https://jingyan.baidu.com/article/a3761b2bc78d731576f9aaa5.html def get_data(path): print(path) def bianli(rootDir): for root,dirs,files in 阅读全文
posted @ 2020-01-31 14:24 zhangdingqu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: import lxml.etree as etree # 1). 将html内容转化成xpath可以解析/匹配的格式; #html = """ #<!DOCTYPE html> #<html> #<head lang="en">...... selector = etree.HTML(html) s 阅读全文
posted @ 2020-01-31 12:43 zhangdingqu 阅读(1622) 评论(0) 推荐(0) 编辑