Coder Social home page Coder Social logo

se_for_book's Introduction

SE_for_book

本系统是关于图书的搜索引擎,内容是豆瓣图书中的部分标签下的内容(标签见下图)。

image-20200814220029899

运行效果为

image-20200814220029899

image-20200814220029899

需要条件

elasticsearch 下载 (还可安装elasticsearch-head插件方便查看)

所需要的python包:elasticsearch,scrapy,flask

python -m pip install elasticsearch
python -m pip install scrapy
python -m pip install flask

运行方法

(假设elasticsearch和elasticsearch-head都在es文件夹)

  • 首先运行elasticsearch:

      cd es\elasticsearch-7.8.1\bin
      ./elasticsearch

    或在es文件夹下双击elasticsearch.bat。elasticsearch默认运行于9200端口。

  • 可以运行elasticsearch-head用于查看数据(非必需):

    需要已安装node.js

      cd es\elasticsearch-head
      npm run start

    elasricsearch-head默认运行于9100端口

  • 如果elasticsearch没有数据,则需要先运行一次爬虫,运行爬虫只需要执行DoubanReaderSpider目录下的main.py文件,或是:

    cd DoubanReaderSpider
    scrapy crawl bookSpider
  • 爬取并存入ES后,可运行启动服务器运行搜索界面:

    cd front_end
    python app.py

    然后按照提示打开浏览器访问即可使用。

se_for_book's People

Contributors

dyx3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.