Coder Social home page Coder Social logo

kvsur / csdn_data Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.02 MB

使用chrome 扩展 获取csdn cookie 模拟登录,获取对应数据

JavaScript 63.88% HTML 0.54% Vue 34.21% CSS 1.37%
node nodejs csdn cookie chrome-extension vue-cli-2x superagent express pkg

csdn_data's Introduction

csdn_data

最近因为公司运营人员需要,做一个工具来供其使用,主要功能包括:

  1. 获取csdn 主要对应各个栏目的博客数据
  2. 可搜索csdn对应的博客数据
  3. 可批量单个的操作 关注/取消关注
  4. 查看自己的粉丝/已关注的人

工具的登录并未自身实现,是通过使用chrome 扩展监听的方式获取session 扩展会监听.csdn.net域对应cookie信息的变化从而拿到session【cookie】,之后就方便了

后端

后端使用node + express + superagent 实现

前端

vue + element + vue-cli

构建

使用 pkg(global install) 将 node 构建成了 各个平台对应的可执行文件【lin,win,mac】

dir struct

csdn_data

|--- src // server
  |
  |--- server
  |--- actions
  |--- router
|--- client // frontend
|--- cookie-ext // chrome extension
  |
  |--- images
  |--- js
  |--- manifets.json
|--- dist // frontend built files
|--- config // server config
  |--- api.evn // csdn apis 
  |--- request.header.js // common header for superagent request
  |--- server.env // base config
|--- package.json
|--- .gitignore
|--- README.md

csdn_data's People

Contributors

kvsur avatar

Stargazers

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