Gitbush笔记

1、如果要想模拟浏览器发送get请求,就要使用Request对象,通过Request对象添加HTTP头,就可以伪装成浏览器。 from urllib impor request req=request.Request("http://www.bnaid.com") req.add_header('User_Agent',, 'Mozilla/6.0 (iPhone; CPU iPhone OS 8
相关文章
相关标签/搜索