Python爬取杭州滨江区租房价格并分析
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from IPython import display
display.set_matplotlib_formats('svg')
sns.set(font='SimHei', font_scale=1.5)
# 解决Seaborn中文显示问题并调整字体大小
import matplotlib
%matplotlib inline
matplotlib.rcParams['font.sans-serif'] = ['SimHei']
matplotlib.rcParams['font.size'] = 16
# 爬虫用了很粗暴的抓HTML再用xpath解析的方式,反反爬用了简单的UA伪装
用户评论