Python爬虫——Urllib库-1

news2024/12/26 22:53:48

        这几天都在为了蓝桥杯做准备,一直在刷算法题,确实刷算法题的过程是及其的枯燥且枯燥的。于是我还是决定给自己找点成就感出来,那么Python的爬虫就这样开始学习了。 

注:文章源于观看尚硅谷爬虫视频后笔记

目录

Urllib库

基本使用

一个类型和六个方法

一个类型

六个方法

下载功能

请求对象的定制

url的组成

(1)协议

(2)主机

(3)端口号

(4)路径

(5)参数

(6)锚点

总结


       

Urllib库

这个库和其他的爬虫库不一样,这个库是Python自带的,所以一般是不需要安装的。

基本使用

urllib的基本使用,我们把百度页面的所有源代码全部拿下。

就是这个页面的全部东西,我们可以使用urllib来拿下它。

代码如下:


# 使用urllib来获取百度首页的源码
import urllib.request


# 1.定义一个URL,就是要访问的网址
url = "http://www.baidu.com/"

# 2.模拟浏览器向服务器发送请求
response = urllib.request.urlopen(url)

# 3.获取响应中的页面中的源码
# read返回的是字节形式的二进制数据
# 将二进制的数据转换为字符串
# 解码:二进制 -> 字符串  decode('编码格式字符集')
content = response.read().decode('utf-8')

# 4.打印一下数据
print(content)


一个类型和六个方法

一个类型

首先我们可以看见服务器返回给我们的response的类型是HTTPResponse

六个方法

[1]  read( ):按照一字节一字节的读取,效率较慢

扩展:read( n ):n是多少就返回多少个字节

[2] readline():读取一行

[3] readlines():一行行的读取,直到读取完毕

[4] getcode():获取浏览器状态码,200证明没有报错

[5] geturl():获取url地址

[6] getheaders():获取响应头(状态信息)


# 使用urllib来获取百度首页的源码
import urllib.request

# 1.定义一个URL,就是要访问的网址
url = "http://www.baidu.com/"

# 2.模拟浏览器向服务器发送请求
response = urllib.request.urlopen(url)

# 一个类型和六个方法
print(type(response))

content = response.read()
print(content)

# 数字代表返回字节的数量
content = response.read(5)
print(content)

# 读取一行
content = response.readline()
print(content)

# 一行行的读取,直到读取完毕
content = response.readlines()
print(content)

# 获取状态码
content = response.getcode()
print(content)

# 获取URL地址
urlP = response.geturl()
print(urlP)

# 获取响应头(状态信息)
headers = response.getheaders()
print(headers)

下载功能

urlretrieve(url, “给保存下来的文件取一个文件名,注意后缀”)
import urllib.request

# 下载一个网页
url_page = "http://www.baidu.com"

# url 代表下载路径,filename代表文件的名字
urllib.request.urlretrieve(url_page, "baidu.html")

# 下载图片
url_img = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAsJCQcJCQcJCQkJCwkJCQkJCQsJCwsMCwsLDA0QDBEODQ4MEhkSJRodJR0ZHxwpKRYlNzU2GioyPi0pMBk7IRP/2wBDAQcICAsJCxULCxUsHRkdLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCz/wAARCAGIAQYDASIAAhEBAxEB/8QAHAAAAQUBAQEAAAAAAAAAAAAAAwACBAUGAQcI/8QAQRAAAgEDAgQEAwUGBQQCAgMAAQIDAAQRBSESMUFREyJhcQaBkRQjMkKhUmKxwdHwBzNyguEVJEOSFlM0okRz8f/EABoBAAIDAQEAAAAAAAAAAAAAAAIDAAEEBQb/xAAoEQACAgICAgICAgIDAAAAAAAAAQIRAyESMQRBIlETMgVhI3EUFTP/2gAMAwEAAhEDEQA/ALgHGacCe9cCb0QJUFUNBY96IobPOnKtFCjIqyHFBqVbwPK4UHntvQhipdrKInBPLO9VZaRbwadbxqOIFm2zk1INranbwx8s0oriCRVxIuT0yM0bOapB6IrWNseXGvs39aGdOX8szf7hn+FT6XzqyUVT2N0M8JDDpg7/AK1GaC5X8SOPl/Sr750vnVUSjOkOO4+tc83etCyRtzVT7gUFrS2b8gH+napRKKMlu9dQSSOiKfMxwKtX06I/hcj33psNqLZ2dmDMRwpjpnnUS2WkSIkWJEQE4UYyeZPei59aA7onmkbffCgZyfYb0x7hIonnnYQwoCcsRkim0Nok59eXrWf1n4r0vSgyB1mnGRwhgEUj9pqwXxZ/iSzmaw0TkCUkuScrsceTHP35e9eYzXd5dyM880kjucksT1qaXZFV7PR9V+OL69LJ9pEceSBHD/MiqBtXVj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M9JBkg91PMGlSpYRhdW+BJk4ptIl8RRv9nuGxIP/AOuTr8/rWajttRd57O+h2twGeO6XEoOeEKh50qVFEGSRF1PQoZ2lZozE4OMqAD5RgkAeUisdDbmS58xZhGGAJ5kDYc6VKmoQ9Jkl1kTYgZHLrtQmUlmVuRNKlWpdGa9l1pDE2vhjnGXU+xORTI5/sOqoT/l3GI2A/bzsaVKtD6Rlj/6NG1VxLwFRsQPfNSIg0RU++9KlQMtMurSVQFzk5xk1YswPKlSrO+zUtmO+K45kltLiNchlaI9OR4qVKlWiM3RmnBN2f//Z"
urllib.request.urlretrieve(url_img, "zrn.jpg")

# 下载视频
url_video = "https://vdept3.bdstatic.com/mda-nh1e9kssmc87p4kd/sc/cae_h264/1659450984449082322/mda-nh1e9kssmc87p4kd.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1709180938-0-0-32b067f6cb3b6ecaa687926ed3921790&bcevod_channel=searchbox_feed&pd=1&cr=2&cd=0&pt=3&logid=1738376535&vid=10757595435498108110&klogid=1738376535&abtest=116096_1"
urllib.request.urlretrieve(url_video, "爬虫下来的文件/ZRNvideo.mp4")

        注意爬下来的视频在pycharm中无法直接播放,因为它并不内置视频解码器,需要在文件管理器或者其他的播放软件中播放。


请求对象的定制

url的组成

http/https        www.baidu.com             80/443                                 ?号后面的数据       #

协议                       主机                        端口号                路径                参数               锚点

https://www.baidu.com/s?ie=UTF-8&wd=%E7%AB%A0%E8%8B%A5%E6%A5%A0

                                                                                           s             ie=UTF-8...

(1)协议

http

https:增加了SSL更加的安全

(2)主机

也就是域名,主机地址

(3)端口号

http的端口号是 80

https的端口号是 443

MySQL是 3306

Oracle 是 1521

Redis 是 6379

MongoDB 是 27017

(4)路径
(5)参数
(6)锚点

如果我们使用https来获取百度首页的全部数据时


import urllib.request

url = "https://www.baidu.com"

response = urllib.request.urlopen(url)

content = response.read().decode("utf-8")
print(content)


会发现真的只有这么一点内容

为什么呢?因为我们遇到了一个反扒的措施

        UA:User Agent叫做用户代理,它是一个特殊字符串头,使得服务器能够识别客户使用的操作系统以及版本,CPU类型、浏览器以及版本。浏览器内核、浏览器渲染引擎、浏览器语言和浏览器插件等

python语法: request = urllib.request.Request( )

所以我们需要伪装一下

常用的UserAgent库下载_流行的UserAgent手机库UA_UA标识网 (kuzhazha.com)

获取UA可以通过上面的网站搜索,也可以通过另一种方法

再刷新一下页面

往下滑就可以找到

然后使用

urllib.request.Request()这个方法即可
import urllib.request

url = "https://www.baidu.com"

headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
}
# 因为urlopen()方法不能存储字典,所以headers无法传入
# 请求对象的定制
request = urllib.request.Request(url=url, headers=headers)

response = urllib.request.urlopen(request)

content = response.read().decode("utf-8")
print(content)

这样就可以完全把百度首页的代码爬下来了

总结

简单使用,一学就会!

ヾ( ̄▽ ̄)Bye~Bye~

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1480239.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【电路笔记】-RC网络-RC积分器

RC积分器 文章目录 RC积分器1、概述2、RC积分器3、电容电压4、单脉冲 RC 积分器5、RC积分器示例6、RC 积分器作为正弦波发生器7、总结RC 积分器是一个串联的 RC 网络,可产生与积分的数学过程相对应的输出信号。 1、概述 对于无源 RC 积分器电路,输入连接到电阻,而输出电压取…

项目风险管理的前提是对风险的认知

大家好,我是不会魔法的兔子, 一枚北京执业律师,创建[项目管理者的法小院儿],持续从法律的角度分享项目管理中的风险问题及预防,让项目管理者能够提早发现与解决项目执行过程中的风险,同时欢迎大家一起交流…

渗流监测站技术原理

【TH-SL1】渗流监测站的技术原理主要基于传感器技术和数据处理技术,用于实时监测和分析地下水或土壤中的渗流情况。渗流监测站通常包括多种传感器,如水位传感器、温度传感器、电导率传感器等,用于测量地下水或土壤中的水位、温度、电导率等参…

ICLR 2024|ReLU激活函数的反击,稀疏性仍然是提升LLM效率的利器

论文题目: ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models 论文链接: https://arxiv.org/abs/2310.04564 参数规模超过十亿(1B)的大型语言模型(LLM)已经彻底改变了现阶段人工…

精酿啤酒:创新原料的研发与市场前景

随着消费者口味和需求的不断变化,创新已成为啤酒行业持续发展的重要驱动力。Fendi Club啤酒在创新原料的研发方面走在行业前列,积极探索新型原料和风味组合,以满足市场对多样化、个性化产品的需求。 Fendi Club啤酒注重研发新型原料和添加剂。…

线程安全的队列

学习一下别人写的,线程安全的队列代码。https://github.com/markparticle/WebServer/blob/master/code/log/blockqueue.hhttps://github.com/markparticle/WebServer/blob/master/code/log/blockqueue.h /** Author : mark* Date : 2020-06-16* copy…

【嵌入式——QT】QListWidget

QListWidget类提供了一个基于项的列表小部件,QListWidgetItem是列表中的项,该篇文章中涉及到的功能有添加列表项,插入列表项,删除列表项,清空列表,向上移动列表项,向下移动列表项。 常用API a…

MySQL-CDC 新增同步表确无法捕获增量问题处理

Flink-CDC版本&#xff1a;2.3.0 问题描述 之前通过Flink-CDC捕获Mysql数据库的数据变更情况&#xff0c;代码大致如下&#xff1a; StreamExecutionEnvironment env StreamExecutionEnvironment.getExecutionEnvironment(flinkEnvConf);MySqlSource<String> mysql …

智能咖啡厅助手:人形机器人 +融合大模型,行为驱动的智能咖啡厅机器人(机器人大模型与具身智能挑战赛)

智能咖啡厅助手&#xff1a;人形机器人 融合大模型&#xff0c;行为驱动的智能咖啡厅机器人(机器人大模型与具身智能挑战赛) “机器人大模型与具身智能挑战赛”的参赛作品。的目标是结合前沿的大模型技术和具身智能技术&#xff0c;开发能在模拟的咖啡厅场景中承担服务员角色并…

adb下载安装及使用教程

adb下载安装及使用教程 一、ADB的介绍1.ADB是什么&#xff1f;2.内容简介3.ADB常用命令1. ADB查看设备2. ADB安装软件3. ADB卸载软件4. ADB登录设备shell5. ADB从电脑上发送文件到设备6. ADB从设备上下载文件到电脑7. ADB显示帮助信息 4.为什么要用ADB 二、ADB的下载1.Windows版…

「MySQL」增删查改

在操作数据库中的表时&#xff0c;需要先使用该数据库&#xff1a; use database;新增 创建表 先用 use 指定一个数据库,然后使用 create 新增一个表 比如建立一个学生表 mysql> use goods; mysql> create table student(-> name varchar(4),-> age int,-> …

Linux系统---nginx(4)负载均衡

目录 1、服务器配置指令 ​编辑 1.1 服务器指令表 1.2 服务器指令参数 2、负载均衡策略指令 2.1 轮询 &#xff08;1) 加权轮询 &#xff08;2) 平滑轮询 2.2 URL 哈希&#xff08;一致性哈希&#xff09; 2.3 IP哈希策略 2.4 最少连接 Nginx 负载均衡是由代理模块和上…

爱心商城|爱心商城系统|基于Springboot的爱心商城系统设计与实现(源码+数据库+文档)

爱心商城系统目录 目录 基于Springboot的爱心商城系统设计与实现 一、前言 二、系统功能设计 三、系统功能设计 1、商品管理 2、捐赠管理 3、公告管理 4、公告类型管理 四、数据库设计 五、核心代码 六、论文参考 七、最新计算机毕设选题推荐 八、源码获取&#x…

ssm274办公自动化管理系统

** &#x1f345;点赞收藏关注 → 私信领取本源代码、数据库&#x1f345; 本人在Java毕业设计领域有多年的经验&#xff0c;陆续会更新更多优质的Java实战项目希望你能有所收获&#xff0c;少走一些弯路。&#x1f345;关注我不迷路&#x1f345;** 一 、设计说明 1.1课题背…

图结构数据的构建-DGL库

官方文档 一、图的特点 同构性与异构性 相比同构图&#xff0c;异构图里可以有不同类型的节点和边。这些不同类型的节点和边具有独立的ID空间和特征&#xff1b;同构图和二分图只是一种特殊的异构图&#xff0c;它们只包括一种关系 节点与边 有向图一条边、无向图两条边、…

天津廉租房如何申请取得廉租住房租房补贴资格

如何申请廉租住房租赁补贴资格&#xff1f; 低收入住房困难家庭应当向户籍所在地街道办事处&#xff08;乡镇人民政府&#xff09;提出申请。 申请时&#xff0c;您需要提供以下要求的原件和复印件&#xff1a; &#xff08;一&#xff09;您及家人的身份证件&#xff1b; &a…

React富文本编辑器开发(二)

我们接着上一节的示例内容&#xff0c;现在有如下需求&#xff0c;我们希望当我们按下某个按键时编辑器有所反应。这就需要我们对编辑器添加事件功能onKeyDown, 我们给 Editor添加事件&#xff1a; SDocor.jsx import { useState } from react; import { createEditor } from…

羊大师分享,羊奶奶有哪些对健康有益的喝法?

羊大师分享&#xff0c;羊奶奶有哪些对健康有益的喝法&#xff1f; 羊奶奶有多种对健康有益的喝法&#xff0c;以下是一些建议&#xff1a; 直接饮用&#xff1a;将羊奶直接煮沸后饮用&#xff0c;可以保留羊奶中的营养成分&#xff0c;为身体提供全面的滋养。羊奶的丰富蛋白质…

从李一舟看AI浪潮: 聚合数据教你如何把握数据的真正价值

AI热潮的追捧与质疑 在人工智能&#xff08;AI&#xff09;技术的浪潮中&#xff0c;每天都有新的进展让我们惊叹不已。最近&#xff0c;OpenAI的Sora模型如同一颗璀璨的明星&#xff0c;闪耀在科技界的夜空。与此同时&#xff0c;各种AI相关的产品和课程如同春雨后的竹笋&…

四川易点慧电子商务有限公司抖音小店靠谱吗?

在当下电商行业风起云涌的时代&#xff0c;四川易点慧电子商务有限公司作为抖音小店的一家新兴力量&#xff0c;是否靠谱成为了许多消费者和创业者关注的焦点。今天&#xff0c;我们就来深度解析一下这家公司&#xff0c;看看它的抖音小店究竟靠不靠谱。 一、公司背景介绍 四川…