摘要: import urllib.requestimport urllib.parse# url = 'http://www.baidu.com'# response = urllib.request.urlopen(url=url)# with open('baidu.html', 'w', encod 阅读全文
posted @ 2019-04-03 15:36 呼呼嘻嘻 阅读(114) 评论(0) 推荐(0) 编辑
摘要: UA -- uesr-agent -- 用户代理,是服务器判断请求的种类,比如:使用PC和手机访问一个网站,呈现的画面是不一样的。 原理就是设备的用户代理不同 1 主要浏览器 safari 5.1 – MACUser-Agent:Mozilla/5.0 (Macintosh; U; Intel Ma 阅读全文
posted @ 2019-04-03 15:21 呼呼嘻嘻 阅读(12612) 评论(0) 推荐(0) 编辑
摘要: ## 内容回顾 #### 1.所有的命令 ##### 下载安装 ​ pip install django==1.11.20 - i 源 ##### 创建项目 ​ django-admin startproject 项目名 ##### 启动项目 ​ python manage.py runserver 阅读全文
posted @ 2019-04-03 09:15 呼呼嘻嘻 阅读(186) 评论(0) 推荐(0) 编辑