Python下基于requests及BeautifulSoup构建网络爬虫功能说明案例安装requests和BeautifulSoup程序程序输出结果
功能说明在Python下面可使用requests模块请求某个url获取响应的html文件,接着使用BeautifulSoup解析某个html。案例假设我要http://maoyan.com/board/4猫眼电影的top100电影的相关信息,如下截图: 获取电影的标题及url。安装requests和BeautifulSoup使用pip工具安装这两个工具。pip install requestspi