Code Monkey home page Code Monkey logo

novelrs's Introduction

novelRS

一个简单的网络小说推荐系统。

开发环境

python3.6 + mongodb

代码说明

运行小说爬虫

下载小说列表:

cd crawler & python3 info_crawler.py

下载小说的txt文件:

cd crawler & python3 txt_downloader.py

小说过滤(只考虑大于500KB的小说):

cd crawler & python3 download_check.py

运行推荐算法

通过ipython notebook打开RS.ipynb

cd RS & ipython3 notebook

然后逐步完成notebook中的以下步骤:

  • 1、分词
  • 2、词表分析
  • 3、TF-IDF构建
  • 4、KD-Tree最近邻查询
  • 5、相似度更新

运行网页Demo

导入数据

数据下载链接:https://pan.baidu.com/s/1PFjFBtaKaBeS90CL5-hIKA 密码:f16j

mongoimport -d novelRS -c novels --file=novels.json

前端说明

基于vue1.0编写,可以不用care。

cd web_demo
npm install    # 安装依赖库
npm run dev    # 调试模式
npm run build  # 导出dist

运行后台

cd web_demo & python3 main.py

测试效果

运行后,打开http://localhost:38438

LICENSE

MIT

novelrs's People

Contributors

nladuo avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.