摘要:
异步爬虫 基础知识 阻塞 阻塞状态指程序未得到所需计算资源时被挂起的状态。程序在等待某个操作完成期间,自身无法继续干别的事情,则该程序在操作上是阻塞的。 常见的阻塞形式有:网络I/O阻塞、磁盘I/O阻塞、用户输入阻塞等。阻塞是无处不在的,包括在CPU切换上下文时,所有进程都无法真正干事情,它 阅读全文
posted @ 2023-05-05 19:59
Kang_kin
阅读(125)
评论(0)
推荐(0)
Beautiful Soup 基本使用 <html> <head> <title> The Document's story </title> </head> <body> <p class="title" name="dromouse"><b>The Dormouse's story</b></p 阅读全文
#requests 基本请求 import requests r=request.get('https://www.baidu.com/') print(type(r)) print(r.status_code) print(r.cookies) #get post put delete patch 阅读全文
urllib urlopen 一个基本请求 from urllib import request, parse def Api(): # 禁用证书验证 ssl._create_default_https_context = ssl._create_unverified_context respons 阅读全文