Git Product home page Git Product logo

owllook's Introduction

chapter

1.说明

网络小说搜索引擎——owllook 演示网址:https://www.owllook.net/

owllook是一个基于其他搜索引擎的垂直小说搜索引擎

目标是满足小说爱好者的搜书、阅读、收藏、追更、推荐等功能

若将本项目部署并发行,请声明来源,本项目纯属共享学习之用,不得用于商业!

1.1.项目介绍

owllook使用了mongodb储存了用户使用过程中的产生的基本信息,诸如注册信息、搜索小说信息、收藏小说数据等,对于某些必要的缓存,则利用redis进行缓存处理,如小说缓存、session缓存,注意,对于限制数据:都将在24小时删除

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

目前采用的是直接在搜索引擎上进行结果检索,我尽量写少量的规则来完成解析,具体见规则定义,遇到自己喜欢的小说网站,你也可以自己添加解析,owllook目前解析了超过 200+ 网站,追更网站解析了50+

有一些地方需要用到爬虫,比如说排行榜,一些书籍信息等,我不想动用重量级爬虫框架来写,于是我在owllook里面编写了一个很轻量的爬虫模块来做这件事,见 talonspider

BTW,sanic写界面确实不是很方便,至于为什么写这个,一是想利用sanic尽量做成异步服务,二是想就此练习下推荐系统,顺便作为毕业设计

若觉得还可以,就给个 star 吧,详细介绍 owllook -- 一个简洁的网络小说搜索引擎

如果您希望在终端下看小说,可以试试这个项目NIYT

关于安装:

请先装好mongo以及redis,然后python环境请确认在python3.5+,不会安装mongo看这里

mongo以及redis装好后,进入项目目录,依照步骤执行:

# 首先
git clone https://github.com/howie6879/owllook
cd owllook
pip install -r requirements.txt
cd owllook

# 方案一
# 运行:
python server.py
# 或者
gunicorn --bind 127.0.0.1:8001 --worker-class sanic.worker.GunicornWorker server:app

# 方案二
docker build -t owllook:0.1 .
# 在dev_owllook.env里面填上数据库配置 数据库ip需要注意 不得填localhost
docker run --env-file ./dev_owllook.env -d -p 8001:8001 owllook:0.1

1.2.项目进度

v0.1.0:

  • 小说的基本搜索解析功能
  • 搜索记录
  • 缓存
  • 书架
  • 书签
  • 登录
  • 初步兼容手机(后续跟进)

TODO:

  • 注册(开放注册)
  • 上次阅读
  • 最新章节
  • 书友推荐(很基础的推荐)
  • 目录获取
  • 翻页
  • 搜索排行
  • 部分页面重写
  • 章节异步加载 感谢@mscststs
  • 排行榜 - 起点+owllook
  • 阅读书单
  • 推荐

2.效果图

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

2017-07-29更新

书架:

books

目录解析页:

demo

阅读:

content

3.License

owllook is offered under the Apache 2 license.

4.感谢

owllook使用了以下第三方包:

  • sanic:基于Python 3.5+的异步web服务器

  • sanic_session:sanic的持续会话插件

  • uvloop:sanic默认使用uvloop,替代asyncio本身的loop

  • motor:异步的mongodb驱动

  • ​Jinja2:基于python的模板引擎

  • aiohttp:异步请求

  • aiocache:异步缓存,本项目改用了其中的decorator部分,缓存数据库使用redis

  • caddy:基于go的web服务器

    …...更多见requirements.txt,感谢开发者。

web框架:

bootstrap:Sleek, intuitive, and powerful front-end framework for faster and easier web development.

mdui:MDUI 是一个基于 Material Design 的前端框架

感谢以下捐赠者 ^_^ :

  • 12hStudy: 5 元
  • 佚名:5元
  • 佚名:50元
  • 路人甲、:100元
  • 盛阿德:20元
  • shine:50元
  • 江黑龙:10元
  • Future:100元
  • Mongol Hun :20元
  • 佚名:15元
  • 人到中年:100元
  • Black:6元
  • 滑稽:5元

donate

owllook's People

Contributors

howie6879 avatar mscststs avatar zhiyue avatar

Watchers

 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.