Git Product home page Git Product logo

mmxyz's Introduction

Node.js 爬虫 - mmxyz


爬第三方网站超高质量ROSI美女图片,并实现自动下载图片到本地!接口大概有14万张左右的美女图片,好东西哦...

看截图:

mm.png


使用

git clone https://github.com/helpcode/mmxyz.git
npm install
npm run dev

注意:开发测试阶段接口运行在

http://127.0.0.1:9999/api/v1.0/

线上接口统一运行在,开发你自己应用的时候用这个:

http://103.95.207.27:9999/api/v1.0

新增接口

  • 1:获取分类热图

接口地址:http://103.95.207.27:9999/api/v1.0/hot?type=丝袜&page=4

使用方法和下面一样,不过这边page字段最大19

  • 2:获取图片的详情数据

接口地址:http://103.95.207.27:9999/api/v1.0/hot/info?id=2540

使用方法和下面一样,不过这边page字段最大19

首页接口

地址 请求方式 参数
/index GET page 页数(string) 注意:page最大81,大于81页就没有数据了!
  • 示例:

http://103.95.207.27:9999/api/v1.0/index?page=1

  • 返回数据:
{
  status: 200,
  length: 34,
  copyright: "bmy Sun Jul 15 2018 21:07:07 GMT+0800 (CST)",
  data: [
      {
        title: "ROSI写真-No.2221",
        imgurl: "http://www.mmxyz.net/wp-content/themes/rosi/timthumb.php?src=http://img1.mmxyz.net/2018/01/d5-300x199.jpg&w=265&zc=1",
        href: "http://www.mmxyz.net/rosi-2221/",
        view: "41,088",
        comments: "3"
      },
      {
        title: "ROSI写真-No.2220",
        imgurl: "http://www.mmxyz.net/wp-content/themes/rosi/timthumb.php?src=http://img1.mmxyz.net/2018/01/d4-300x199.jpg&w=265&zc=1",
        href: "http://www.mmxyz.net/rosi-2220/",
        view: "20,807",
        comments: "2"
      }
  ]
}

详情接口


这边传入首页接口中的title: "ROSI写真-No.2221",将2221作为图册id,进进入详情并自动下载该图册所有的图片。

地址 请求方式 参数
/info GET id 图册id(string)
  • 示例:

http://103.95.207.27:9999/api/v1.0/info?id=2221

  • 返回数据:
{
  status: 200,
  length: 52,
  copyright: "bmy Sun Jul 15 2018 21:10:55 GMT+0800 (CST)",
  weeklynumber: "rosi写真第2221期套图",
  data: [
      {
        name: "rosi-2221-051",
        bigimg: "http://img1.mmxyz.net/2018/01/rosi-2221-051.jpg",
        smallimg: "http://img1.mmxyz.net/2018/01/rosi-2221-051-150x150.jpg"
      },
      {
        name: "rosi-2221-050",
        bigimg: "http://img1.mmxyz.net/2018/01/rosi-2221-050.jpg",
        smallimg: "http://img1.mmxyz.net/2018/01/rosi-2221-050-150x150.jpg"
      },
      {
        name: "rosi-2221-049",
        bigimg: "http://img1.mmxyz.net/2018/01/rosi-2221-049.jpg",
        smallimg: "http://img1.mmxyz.net/2018/01/rosi-2221-049-150x150.jpg"
      }
  ]
}

mmxyz's People

Contributors

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