- 博客(3)
- 收藏
- 关注
转载 将爬取到的数据存入数据框并导出
import requestsfrom lxml import etreefrom pandas import DataFrame url='https://search.51job.com/list/120800,000000,0000,32,9,99,%25E4%25BA%25A7%25E5%2593%2581%25E7%25BB%258F%25E7%2590%2586,2,1.h...
2019-09-22 10:02:00 353
转载 XPath常见用法
import requestsfrom lxml import etreeurl='https://www.baidu.com/'r=requests.get(url)r.encoding='utf-8'r.text root=etree.HTML(r.text)root.xpath('/html/*') 转载于:https://www.cnblogs.com/tiankong-bl...
2019-09-19 19:36:00 80
转载 python 图表
#图表 import matplotlib.pyplot as plt fig,ax=plt.subplots(2,2)ax[0,1].plot(x,y,'r--*',label='sin')ax[0,1].legend(loc='upper right')ax[0,1].grid()fig.savefig('fig.png') import pandas as pd df...
2019-09-19 19:35:00 189
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人