2021年3月27日
摘要: 爬虫笔记3 设置日志 import logging # 设置日志输出样式 logging.basicConfig(level=logging.DEBUG,format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message 阅读全文
posted @ 2021-03-27 21:38 行之间 阅读(593) 评论(0) 推荐(0) 编辑
  2021年3月12日
摘要: scrapy框架学习课程概要 1.scrapy的基础概念 2.scrapy的工作流程 3.scrapy的入门使用 4.scrapy的深入 5.cralspider的使用 为什么要学习scrapy? requests+selenium可以解决90%的需求 scrapy不能解决剩下的10%的需求,但是它 阅读全文
posted @ 2021-03-12 18:42 行之间 阅读(529) 评论(0) 推荐(0) 编辑
  2021年3月10日
摘要: 爬虫 概念:模拟浏览器,发送请求,获取相应 作用:数据采集、软件测试、抢票、网站上的投票、网络安全(漏洞扫描) 分类: 爬取网站数量不同:通用爬虫,搜索引擎;聚焦爬虫,专门抓取一个或某一类网站数据 是否以获取数据为目的:功能性爬虫,投票,点赞;数据增量爬虫,比如获取招聘信息;而数据增量爬虫又可以分为 阅读全文
posted @ 2021-03-10 15:31 行之间 阅读(848) 评论(0) 推荐(0) 编辑
  2021年3月9日
摘要: s1 = 'Hello' s2 = 'Python' f'{s1} {s2}'#fast,f-string s1 + ' ' + s2 ' '.join(s1, s2) '%s %s' % (s1, s2) '{} {}'.format(s1, s2) Template('$s1 $s2').sub 阅读全文
posted @ 2021-03-09 22:11 行之间 阅读(162) 评论(0) 推荐(0) 编辑
摘要: class GithubSpider(scrapy.Spider): name = 'github' allowed_domains = ['github.com'] start_urls = ['https://github.com/login'] def parse(self, response 阅读全文
posted @ 2021-03-09 21:20 行之间 阅读(118) 评论(0) 推荐(0) 编辑
  2021年3月8日
摘要: import hashlib hash算法其实就是给指定字符串一个唯一身份标识 data = 'python38' 创建hash对象 md5 = hashlib.md5() 向hash对象中添加需要做hash运算的字符串 md5.update(data.encode()) 获取字符串的hash值 r 阅读全文
posted @ 2021-03-08 20:56 行之间 阅读(437) 评论(0) 推荐(0) 编辑
摘要: USER_AGENTS = ['Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20130331 Firefox/21.0', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML 阅读全文
posted @ 2021-03-08 19:43 行之间 阅读(492) 评论(0) 推荐(0) 编辑
  2021年3月6日
摘要: pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ selenium # 清华镜像源 阅读全文
posted @ 2021-03-06 13:01 行之间 阅读(8334) 评论(0) 推荐(0) 编辑
  2021年1月12日
摘要: 简单四步,快速破解忘记的Wifi密码 第一步:快捷键Win+R,输入cmd 第二步:输入命令:netsh wlan show profiles,这一步的作用是查看你自己电脑连接过的WiFi名字 第三步:输入命令:netsh wlan show profiles "这里输入你想查询密码的WiFi的名字 阅读全文
posted @ 2021-01-12 17:41 行之间 阅读(5185) 评论(0) 推荐(0) 编辑
  2020年12月4日
摘要: 1.Ctrl+Esc:打开“开始”菜单 2.资源文件管理器中,Ctrl+单击选定不需要的文件,再单击編辑菜单中反向选择 3.热启动,Ctrl+Alt+Del 4.Excel换行:Alt+Enter 5.Excel垂直居中:选中表格,右键设置单元格格式,对齐,垂直对齐,居中 6.Excel快速添加一行 阅读全文
posted @ 2020-12-04 20:53 行之间 阅读(1246) 评论(0) 推荐(0) 编辑