Giter Club home page Giter Club logo

crawling-course's Introduction

crawling-course

利用electron爬取千聊、荔枝微课课程信息;实现自动分销课程;获取分销后课程佣金、分成比例、课程推广、课程链接等详细信息;且生成excel保存到本地。 千聊:https://m.qlchat.com/pc/knowledge-mall/index 荔枝微课:https://m.weike.fm/cps/hotlist

Getting Started

1.npm install [email protected] -g(尽量使用3.x版本,最新版本重启应用后会有cookie丢失问题)
2. npm isntall
3. npm start or electron .

文件说明

  1. app.js: 项目入口文件即主进程
  2. index.html 主页面即渲染进程,采用webview的方式加载荔枝微课及千聊
  3. assets/lizhi/main.js: 爬取荔枝微课,转载课程,获取转载后的课程核心代码
  4. assets/qianliao/main.js: 爬取千聊课程,转载课程,获取转载后课程核心代码
  5. assets/qianliao/results: 生成各个步骤获取千聊课程、转载后的千聊课程的json、excel文件
  6. assets/lizhi/results: 生成各个步骤获取荔枝微课课程、转载后的荔枝微课课程的json、excel文件
  7. renderer.js: 解决node内置require跟第三方包之间采用require方式加载冲突报错问题(如jQuery),须在渲染进程加载之前调用

crawling-course's People

Contributors

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