摘要: 爬去300个租房信息页 代码如下 coding: utf 8 import time import requests from bs4 import BeautifulSoup page = 0 limit_count = 300 crawl_list = [] headers = { 'Conte 阅读全文
posted @ 2016-03-01 19:49 november1943 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: python爬虫 小猪短租的租房信息 利用requests获取网页 利用Beautifulsoup4和lxml解析网页 具体代码如下 from bs4 import BeautifulSoup import requests url = 'http://bj.xiaozhu.com/fangzi/1 阅读全文
posted @ 2016-03-01 14:36 november1943 阅读(1011) 评论(0) 推荐(0) 编辑