# 搭建开发环境




### 开发环境介绍

我们使用python来实现最简单的爬虫。

* 使用python的[requests](http://docs.python-requests.org/en/master/)库来发起http请求并获取目标站点的html代码。
* 使用python的[BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)库来解析html，从html中提取感兴趣的内容。

### Requests教程

大家可以在[测试教程网requests教程](/requests)中找到requests库的一些典型用法。

### 环境搭建

* 安装python3，可以参考[这里](/selenium_python/install-selenium/)
* 安装requests，可以参考[这里](/requests/install/)
* 安装BeautifulSoup，可以参考[这里](https://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-beautiful-soup)

### 作者使用软件版本

我的电脑上环境是这样

* python: 3.5.2
* requests: 2.13.0
* beautifulsoup4: 4.6.0

不需要与我的版本保持完全一致，只需要大于等于我使用的版本就可以了




原始封面

![课程图片](https://images.unsplash.com/photo-1433838552652-f9a46b332c40?w=300)


