requests 只获取 url headers

Posted on Posted in python
文章目录[隐藏]

requests 只获取 url headers

import requests

r = requests.head('http://www.baidu.com')
print(r.headers)
print(r.__dict__)
print(r.__attrs__)
» 转载请注明来源:呢喃 » requests 只获取 url headers

Leave a Reply

Your email address will not be published. Required fields are marked *

thirteen − nine =