
python
dj_ing
这个作者很懒,什么都没留下…
展开
-
python 爬虫---爬取一周天气预报信息
爬取湛江一周的天气状况(日期、天气状况、当天的最该最低温度) 1、爬取网站信息 def parse_url(url, headers): # 解释url response = requests.get(url, headers=headers) return response.content.decode("utf-8") 2、提取有用数据 def get_we...原创 2019-04-21 20:52:15 · 2405 阅读 · 1 评论 -
python爬虫之爬取首页校花网的信息
爬取校花网信息(姓名、票数、图片)并保存 http://www.ttpaihang.com/vote/rank.php?voteid=621 #!/usr/bin/env python # -*- coding:utf-8 -*- """ 1、爬去网站的信息 2、筛选出有用数据 3、保存有用数据 4、有用的转化并保存 """ import json...原创 2019-05-05 20:15:06 · 512 阅读 · 0 评论 -
python课本笔记---思维导图
原创 2019-05-12 23:43:31 · 269 阅读 · 0 评论 -
python---对爬取的湛江天气信息图形化
1.读取文件; 2.获得想要的数据内容:日期、最低温、最高温 3.绘制图形。 x轴:日期; y轴:温度变化。 def read_weather_file(): """读取文件,提取内容""" files = open("./weather/weather.json","r",encoding="utf-8") weather_content = files.read...原创 2019-06-16 20:03:17 · 184 阅读 · 0 评论