PYTHON3.6+PYCHARM 爬虫
来源:互联网 发布:爱淘宝怎么删除 编辑:程序博客网 时间:2024/06/09 03:20
1.分分钟扒一个网页下来
import urllib.requestrequest= urllib.request.Request("http://www.baidu.com")response = urllib.request.urlopen(request)print(response.read())
4.POST和GET数据传送
POST方式无法实现
GET方式:
#使用get的方式传送import urllib.parseimport urllib.requestvalues = {}values['username'] = "账号"values['password'] = "********"data = urllib.parse.urlencode(values)url = "http://passport.csdn.net/account/login?from=http://my.csdn.net/my/mycsdn"request = urllib.request.Request(url+'?'+data)response = urllib.request.urlopen(request)print(response.read())
阅读全文
0 0
- PYTHON3.6+PYCHARM 爬虫
- python3.6及pycharm安装
- python3.6 爬虫例子
- Selenium + Pycharm+python3.6自动化环境搭建
- python3.0 网络爬虫 6
- 【Python3.6】糗事百科爬虫
- python3 爬虫
- python3爬虫
- python3 爬虫
- Python3 爬虫
- Python3.6 学习爬虫入门篇
- Python3.6安装Scrapy爬虫框架
- python3.6安装和pycharm汉化版安装
- python3.6+django2.0+pycharm搭建Web开发环境
- Python3 PyQt5 pycharm 环境搭建
- Python3 PyQt5 pycharm 环境搭建
- Python3 PyQt5 pycharm 环境搭建
- Python3.6.1+selenium+pycharm安装
- 女程序媛与男程序猿的一天
- ⑦NDK学习之C语言联合体
- 为什么技术与产品沟通起来总是那么痛苦
- http请求常见状态码说明
- python+opencv安装
- PYTHON3.6+PYCHARM 爬虫
- MySQL存储引擎
- ⑧ NDK学习之C语言枚举
- IOS蓝牙4.0(BLE)开发二编码实战
- Hibernate入门
- 11.4模拟赛感言
- 快速学习 Spring Boot 技术栈
- 解忧程序员,你遇到的坎儿,它懂
- 正则