实战—爬取网站链家租房信息


1.明确目标:拿下该页面的28个租房链接
实战—爬取网站链家租房信息_第1张图片

2.分析租房页面源码
实战—爬取网站链家租房信息_第2张图片

3.导入第三方库

C:\Users\Administrator>pip install requests
C:\Users\Administrator>pip install bs4

4.获取页面每个租房信息

你可能感兴趣的:(Python)