摘要: 阅读全文
posted @ 2021-02-16 14:25 过气诗人 阅读(28) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 爬取笑话网分页数据 # 请求第三方库 import requests # 数据第三方库 from pyquery import PyQuery as pq def XiaoHua(page): url='http://xiaohua.zol.com.cn/youmo 阅读全文
posted @ 2020-05-07 00:06 过气诗人 阅读(135) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 爬取B站弹幕数据进行词云显示 import requests import re import csv headers={ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/53 阅读全文
posted @ 2020-05-05 23:15 过气诗人 阅读(125) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 import requests # 请求地址 def get_lol_list(): url='https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js' # 请求头 headers={ 'U 阅读全文
posted @ 2020-05-03 23:24 过气诗人 阅读(109) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 爬取高考网数据: import requests from bs4 import BeautifulSoup from pyecharts import options from pyecharts.charts import Bar # 文科 def wenkec 阅读全文
posted @ 2020-05-03 00:17 过气诗人 阅读(147) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 抓取腾讯招聘信息 # 抓取用户指定的关键词的所有工作岗位 import requests # 导入请求库 def get_jobs( keyword,pageIndex): # 传入工作岗位keyword url='https://careers.tencent.c 阅读全文
posted @ 2020-05-01 22:44 过气诗人 阅读(159) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 图片爬取 # pip install 库 安装第三方库 # import 库 导包 import requests # 爬虫请求第三方库 from lxml import etree # 数据提取第三方库 # 请求地址 url='http://pic.netbian 阅读全文
posted @ 2020-04-30 22:57 过气诗人 阅读(168) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 模块datetime from datetime import datetime first_date = datetime.strptime('2014-7-1','%Y-%m-%d') print(first_date) 2014-07-01 00:00:00 阅读全文
posted @ 2020-04-27 22:50 过气诗人 阅读(159) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 下载数据 csv文件格式 import csv filename='sitka_weather_07-2014.csv' with open(filename) as f: reader = csv.reader(f) header_row = next(reade 阅读全文
posted @ 2020-04-26 22:46 过气诗人 阅读(157) 评论(0) 推荐(0)
摘要: 谏言:穷则独善其身,达则兼济天下 # 绘制直方图 # die.py import pygal from random import randint class Die(): """表示一个骰子的类""" def __init__(self,num_sides=6): self.num_sides=n 阅读全文
posted @ 2020-04-24 23:05 过气诗人 阅读(162) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示