摘要: 我们首先打开58同城的网站:观察网站的版面: 发现所有的title都是以h3开头,并且具有class为“ property-content-title-name ” 因此我们可以编写这样的程序即可得到整个版面的title,在程序当中使用Xpath表达式即可,使用起来非常方便: import requ 阅读全文
posted @ 2021-01-29 11:40 Geeksongs 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 假设我爬取了这样的一个html网页,前面的前端代码如下所示: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>OK资源采集-最新影视资源大全</title> <meta http-equiv="Content-Type" conte 阅读全文
posted @ 2021-01-29 09:31 Geeksongs 阅读(765) 评论(0) 推荐(0) 编辑

Coded by Geeksongs on Linux

All rights reserved, no one is allowed to pirate or use the document for other purposes.