Git Product home page Git Product logo

soul-manga's Introduction

soul-manga

使用reactjs + python/flask + sqlite + scrapy 构建的单页应用漫画站,里面还用到了gunicorn和fabric的python管理部署工具,当时自己构建自动部署的时候用的


soul_manga

soul1


soul2

安装

前置条件 node.js , python3

安装js依赖

npm install

安装python依赖

pip install -r requirements.txt

开启flask服务器

cd server python web_server.py

启动react

npm start

访问localhost:3000 over .....

关于scrapy

soul_manga_spider.py定义了三种抓取方式,REQ_TYPE分别对应不同的url类型:单个漫画,单个页面的所有漫画,以及全部漫画。还有一个is_update参数用于表明是否只抓取最近更新的页面url然后做增量更新。之前自己部署的时候基本上配合crontab12小时抓取一次足够了,默认情况is_update是false,且REQ_TYPE是default表示什么都不做,默认使用我已经抓取的db。日志级别根据自己需要调整setting.pyLOG_LEVELLOG_FILE

不支持移动端

soul-manga's People

Contributors

shindouhikaru avatar fyxtc avatar

Watchers

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