Skip to content
/ focus Public

深圳二手房房源分布及客户购买意向分析

Notifications You must be signed in to change notification settings

lvhao/focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

focus

爬取链家二手房楼盘信息

涉及技术点

python2.7 + scrapy + matplotlib + mysql

遇到问题

matplotlib 中文显示

    1. 下载字体:simhei.ttf
    1. 找到matplotlib包位置
import matplotlib 
print(matplotlib.matplotlib_fname()
# 示例
# /Users/lvhao/focus_env/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
    1. 放在matplotlib的字体文件夹下(/Users/lvhao/focus_env/lib/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf)
    1. 删除~/.matplotlib下文件 fontList.json tex.cache
    1. 重启python

效果展示

房屋价格占比饼图 房屋区域占比饼图 房价数量直方图 房价/关注,到访直方图 房屋建筑年代数量关系图

About

深圳二手房房源分布及客户购买意向分析

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages