EXCEL数据链接:http://pan.baidu.com/s/1dFzPcOx 密码:f4vx
no module named pymysql python -m pip install -U pip pip install pymysql 相关网址: https://pip.pypa.io/en/latest/installing/#id7
http://blog.csdn.net/yuhouji009/article/details/70856597?utm_source=itdadao&utm_medium=referral
分析合肥二手房情况
A.各区域二手房总数
B.各区域二手房价格区间 单价,总价
合肥二手房情况
链家
数据采集方法 :Python爬虫
main()入口函数
lianjia1()合肥各区县各房型总数
lianjia1()合肥各区县各房型总数-浏览器伪装
connLinajia() 数据库连接
insertLianjia() 文件写入数据库表
truncate() 情况表
makepie() 图标展示
数据库表结构
CREATE TABLE `lianjia_hefei` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`area` varchar(30) DEFAULT NULL,
`fangxing` varchar(10) DEFAULT NULL,
`allhouse` int(10) DEFAULT NULL,
`createdate` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=gbk;
研究方法: Sql分组
XXX
具体项目图表展示:https://zhuanlan.zhihu.com/p/26633979
:) Have Fun ~