通过asyncio模拟HTTP请求
摘要:
import asyncio from urllib.parse import urlparse # 通过socket请求html # asyncio完成http请求 async def get_url(url): url = urlparse(url) host = url.netloc path 阅读全文
posted @ 2021-01-11 20:20 文艺青年.茶 阅读(148) 评论(0) 推荐(0) 编辑