GithubHelp home page GithubHelp logo

jude90 / gk7-douban Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jacksyen/gk7-douban

0.0 1.0 0.0 1.59 MB

豆瓣阅读推送kindle

Home Page: https://chrome.google.com/webstore/detail/lmiobbkpdjmkfhgagdkpgbgonkogbllb

License: GNU General Public License v2.0

Python 73.72% HTML 6.70% JavaScript 16.11% CSS 3.47%

gk7-douban's Introduction

豆瓣阅读推送至kindle

chrome插件及服务端

安装使用,请戳:gk7-豆瓣阅读推送


##Table of Contents

|———
|---- client 客户端代码
|---- db 数据库表操作
|---- docs 文档说明
|---- helper 存放帮助类[切面日志、数据库连接、豆瓣文章解密、批量下载、发送邮件等]
|---- resources 资源,包含发布插件的图片
|---- static 后台静态资源存放目录
|---- templates 后台管理页面模板
|---- tools 存放工具类[HTML页面生成第三方工具]
|---- trans 接受客户端请求和异步线程处理
|---- webglobal 全局配置
|---- index.py 程序入口

main_proc

  • python 2.6 or later(but not 3.x)
  • web.py
  • celery
  • calibre
  • rabbitmq server
  • dev: 开发分支
  • master: 主干分支,发布后由dev合并
git clone https://github.com/jacksyen/gk7-douban.git
git checkout dev

首先必须安装好依赖

sudo pip install web.py
sudo pip install celery
sudo apt-get install calibre
sudo apt-get install rabbitmq-server

## mysql
sudo apt-get -y install libmysqlclient-dev python-dev
sudo pip install MySQL-python
## mysql连接池
sudo pip install DBUtils
// 建议修改rabbitmq默认密码
sudo rabbitmqctl change_password guest <newpwd>
// 修改发送email配置和连接数据库配置
vi webglobal/globals.py
// 修改celery配置
vi webglobal/celeryconfig.py
  • 启动:
// celery服务端
su -
mkdir -p /var/log/celery
export C_FORCE_ROOT='root'
celery -A helper.tasks worker -l info -D -f /var/log/celery/gk7-douban.log --pidfile=/var/run/celery.pid
// 启动
sudo python index.py 8000
// 设置数据库权限
sudo chmod 666 <db name>
  1. 修改插件推送的后台地址url,编辑client/scripts/background.js,在 send 函数中修改 url 地址,和上面服务器端启动的IP/端口对应
  2. 在chrome浏览器中的地址栏中输入:chrome://extensions/,点击 加载正在开发的扩展程序,选择client文件夹即可

Changelog

  • 推送至个人邮箱

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.