1. 首页
  2. 数据库
  3. 其它
  4. 简易小说爬虫(带有GUI界面)

简易小说爬虫(带有GUI界面)

上传者: 2021-01-03 18:57:53上传 PDF文件 111.2KB 热度 9次
简易小说爬虫(带有GUI界面) 效果: ‘, ”).replace(‘‘, ”) html = etree.HTML(string) title = html.xpath(‘//div[@class=”bookname”]/h1/text()’) content = html.xpath(‘//div[@id=”content”]/text()’) return [title[0], content[0]] def Del_line(file_path): “””删除文件空行””” with open(file_path, “r”, encodi
下载地址
用户评论