第一个爬虫

Posted on 2019-02-17 01:06  努力成长静待花开  阅读(102)  评论(0编辑  收藏  举报

第三方库的安装

  1>File|Settings...  (Ctrl+Alt+S)

  1.  单击Project Interpreter 
  2. 选择Python环境 
  3. 单击加号添加库

  

  4.搜索&安装

  

第三方库的使用

  

import requests
res=requests.get('http://www.cnblogs.com/feiyucha')
print(res) #返回<Response [200]>表示成功 若400 404则失败
print(res.text)