Giter Site home page Giter Site logo

1099469599 / novels-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from howie6879/owllook

0.0 1.0 0.0 5.58 MB

owllook-在线网络小说阅读网站&&小说搜索引擎&&小说推荐系统

Home Page: https://www.owllook.net

License: Apache License 2.0

Python 64.28% CSS 12.93% JavaScript 6.56% HTML 16.23%

novels-search's Introduction

chapter

1.说明

网络小说搜索引擎(novels-search)——owllook 网址:https://www.owllook.net/

owllook是一个基于其他网站的垂直小说搜索引擎,至于为什么写这个,一个是想利用sanic尽量做成异步服务,二是想就此练习下推荐系统,顺便作为毕业设计。

本项目纯属共享学习之用,不得用于商业!

  • sanic:基于Python 3.5+的异步web服务器
  • sanic_session:sanic的持续会话插件
  • vloop:sanic默认使用uvloop,替代asyncio本身的loop
  • motor:异步的mongodb驱动
  • aiohttp:异步请求
  • aiocache:异步缓存,本项目改用了其中的decorator部分,缓存数据库使用redis
  • caddy:基于go的web服务器

对于用户信息,利用mongodb进行存储。

某些必要的缓存,利用redis进行缓存处理,注意,对于限制数据:都将在24小时删除。

对于不同网站的小说,页面规则都不尽相同,我希望能够在代码解析后再统一展示出来,这样方便且美观,而不是仅仅跳转到对应网站就完事,清新简洁的阅读体验才是最重要的。

目前采用的是直接在百度上进行结果检索(现在发现百度不行,又加了360,谷歌的也写了一个,部分数据准备开始用爬虫获取),也不是不能做的更大更全,只是觉得没什么意义,目前的检索结果已经很足够。

我尽量写少量的规则来完成解析,具体见规则定义,遇到自己喜欢的小说网站,你也可以自己添加解析。

BTW,sanic写界面确实不是很方便。

详细介绍owllook -- 一个简洁的网络小说搜索引擎

运行:

python server.py

或者

gunicorn --bind 127.0.0.1:8001 --worker-class sanic_gunicorn.Worker server:app

2.demo

下面是一些截图展示,具体效果图请看这里

目录解析页:

demo

阅读:

content

书架:

books

3.关于

0.1.0:

  • 小说的基本搜索解析功能
  • 搜索记录
  • 缓存
  • 书架
  • 书签
  • 登录(暂时不开放注册,可与我申请体验)
  • 初步兼容手机(后续跟进)

TODO:

  • 注册

  • 上次阅读

  • 阅读书单

  • 推荐

  • 排行榜

License

novels-search is offered under the Apache 2 license.

novels-search's People

Contributors

howie6879 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.