# 新闻搜索引擎 # 使用方法 1. 安装python 3.4+环境 2. 安装lxml html解析器,命令为easy_install lxml 3. 安装jieba分词组件,命令为easy_install jieba 4. 安装Flask Web框架,命令为pip install Flask 5. 进入web文件夹,运行main.py文件 6. 打开浏览器,访问http://127.0.0.1:5000/ 输入关键词开始测试 如果想抓取最新新闻数据并构建索引,一键运行`./code/setup.py`,再按上面的方法测试。 # 项目介绍 1. [和我一起构建搜索引擎(一)简介](http://bitjoy.net/2016/01/04/introduction-to-building-a-search-engine-1/) 2. [和我一起构建搜索引擎(二)网络爬虫](http://bitjoy.net/2016/01/04/introduction-to-building-a-search-engine-2/) 3. [和我一起构建搜索引擎(三)构建索引](http://bitjoy.net/2016/01/07/introduction-to-building-a-search-engine-3/) 4. [和我一起构建搜索引擎(四)检索模型](http://bitjoy.net/2016/01/07/introduction-to-building-a-search-engine-4/) 5. [和我一起构建搜索引擎(五)推荐阅读](http://bitjoy.net/2016/01/09/introduction-to-building-a-search-engine-5/) 6. [和我一起构建搜索引擎(六)系统展示](http://bitjoy.net/2016/01/09/introduction-to-building-a-search-engine-6/) 7. [和我一起构建搜索引擎(七)总结展望](http://bitjoy.net/2016/01/09/introduction-to-building-a-search-engine-7/) # 感谢 * [jieba](https://github.com/fxsjy/jieba) * [scikit-learn](https://github.com/scikit-learn/scikit-learn) * [flask](https://github.com/mitsuhiko/flask)