2020年5月4日

使用python中urllib.request.Request()来构建ua

摘要: 1.代码案例=构建http请求头 #coding=utf-8 import urllib.request import urllib.parse url = "http://www.baidu.com/" headers={ 'User-Agent': 'Mozilla/5.0 (Windows N 阅读全文

posted @ 2020-05-04 16:16 孤灯引路人 阅读(702) 评论(0) 推荐(0) 编辑

导航