Giter VIP home page Giter VIP logo

teambition-crawler's Introduction

将tb文档爬到本地,支持下载word文档和html格式的文档。

准备

  1. cookie.config中配置cookie,直接将浏览器请求中request header中cookie的值复制过来即可。
  2. 配置mysql数据库,用来存放空间及目录信息。在本地创建dc-doc数据库,然后将utils/db.utils中的synchronize设置为true,就会自动创建表。
  3. 配置Redis,用来充当下载任务队列的角色,具体可以参见bull库。
  4. MySQL和Redis的连接配置在config.ts中。
  5. 以上准备好之后,npm install,然后运行npm run start:dev来启动客户端页面和服务器端接口服务。

下载文档步骤

  1. 先下载空间,会将所有空间村让到t_workspace表中,此时客户端空间列表就会列出所有空间。
  2. 在页面上进行操作,下载空间的目录,之后就可以下载该空间的word和html文档了。

备注

  1. http://localhost:8082/dc-doc/ 访问界面。
  2. http://localhost:3000/dc-doc/admin/queues/queue/dc_doc?status=active 访问下载任务处理的队列

teambition-crawler's People

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.