Coder Social home page Coder Social logo

puppeteer-qimaishuju's Introduction

qimaishuju

七麦数据数据抓取

利用 puppeteer抓取动态js渲染的网页

origindata目录存储 原始json数据

tempdata目录存储 临时的中间数据,用来进行数据的转换

storage目录存储 获取超链接/详细信息时程序中断的位置,以便下一次程序启动后接着上一次中断位置开始搜索

result目录存储 最终生成的json数据

首先安装依赖文件 进入命令行工具 进入文件根目录 运行命令 cnpm install 等待安装完依赖文件之后执行以下命令

1、进入命令行工具 运行命令 node 1_init.js 置空相关txt文件,以及storage目录中的缓存文件

2、运行命令 node crawler.js

收工!

puppeteer-qimaishuju's People

Contributors

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