爬虫 -入门基础

爬虫 1(入门基础)

一、什么是爬虫

通过编写代码,模拟正常用户使用浏览器的过程,使其能够在互联网自动进行数据抓取

二、HTTP协议

image-20240423155438949

三、URL是什么

URL:资源定位符,是用于完整地描述Internet上网页和其他资源的地址的一种标识方法

image-20240423160217462

四、Header请求头

image-20240423161428479

image-20240423161502137

五、请求头参数的含义

image-20240423161804279 image-20240423161819002 image-20240423161943982 image-20240423162004304 image-20240423162112716 image-20240423162242693

六、requests库

image-20240423162541549

1、GET请求

image-20240425165458517 image-20240423164842076 image-20240425165620025

2、POST请求

image-20240423165456611

posted @ 2024-04-26 11:55  同淋雪  阅读(19)  评论(0)    收藏  举报