上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 49 下一页
摘要: 1 import urllib.request 2 url1 = 'https://www.baidu.com' 3 4 5 #http://www.httpbin.org 这个网站可以课程方便的查看http请求的一些参数 6 # 快代理 7 #创建一个代理IP,传入的值是一个字典,键是http或者 阅读全文
posted @ 2020-03-16 21:24 kog_maw 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1 import urllib.request 2 import urllib.parse 3 4 5 #拉钩网,反爬虫策略很好,请求头需要添加Referer(引用; 引用页; 推荐人; 参照页),请求对象需要data=,method='POST' 6 # url = 'https://baike. 阅读全文
posted @ 2020-03-16 21:21 kog_maw 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1 import urllib.request 2 import urllib.parse 3 4 5 #分割URL网址 6 #两者基本一样,唯一不同的是urlparse会多一个params属性 7 url1 = 'https://baike.baidu.com/item/%E8%99%9A%E6% 阅读全文
posted @ 2020-03-16 21:19 kog_maw 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 import urllib.request 2 import urllib.parse 3 4 5 params = {'name':'张三',"age":"18",'say':'hello world'} 6 result = urllib.parse.urlencode(params) 7 阅读全文
posted @ 2020-03-16 21:18 kog_maw 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 from urllib import request 2 from urllib import request 3 4 5 #保存请求返回的数据,retrieve取回,检索数据 6 resp1 = request.urlretrieve('http://www.baidu.com','baidu 阅读全文
posted @ 2020-03-16 21:17 kog_maw 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 <!-- 前端性能优化 2 从用户访问资源到资源完整的展现在用户的面前的过程中,通过技术手段和优化策略,缩短每个步骤的处理时间从而提升整个资源的访问和呈现速度,网站的性能直接回影响到用户的数量,所有前端性能优化很重要。 3 4 前端性能优化分为如下几个方面: 5 6 1、代码部署 7 a、代码的 阅读全文
posted @ 2020-03-16 20:56 kog_maw 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 <!-- 正则表达式: 2 1、什么是正则表达式:能让计算机读懂的字符串匹配规则 3 2、正则表达式的写法: 4 var re=new regexp(“规则”,“可选参数”); 5 var re=/规则/参数; 6 3、规则中的字符 7 a、普通字符匹配: 8 /a/ 匹配字符a /a,b/匹配 阅读全文
posted @ 2020-03-16 20:55 kog_maw 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, user-scalable=no, initial- 阅读全文
posted @ 2020-03-16 20:54 kog_maw 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, user-scalable=no, initial- 阅读全文
posted @ 2020-03-16 20:53 kog_maw 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1 <!-- bootstrap 模态框 2 1、modal 申明一个模态框 3 2、modal-dialog 定义模态框的尺寸 4 3、modal-lg 定义大尺寸的模态框 5 4、modal-sm 定义小尺寸的模态框 6 5、modal-header 7 6、modal-body 8 7、mod 阅读全文
posted @ 2020-03-16 20:52 kog_maw 阅读(905) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 49 下一页