New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rosi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rosi

一个ROSI美女图片爬虫包

latest
npmnpm
Version
1.2.5
Version published
Maintainers
1
Created
Source

Rosi

一个自动爬取ROSI美女图片的爬虫包,使用简单快速,直接返回JSON数据。

安装

npm install rosi --save-dev

使用

const Rosi = require('rosi')

/**
 * IndexData 获取首页的图片列表
 * 参数 1 是需要获取的页码,最大值 82,大于82就没有数据了。
 */
Rosi.IndexData('1').then( $ => {
    // 打印获取到的 json 数据
    console.log($)
})

数据返回格式:
[
  { 
    // 标题
    title: 'ROSI写真-No.2188',
    // 缩率图地址
    imgurl:'http://www.xx.nxxx7/12/d2-300x200.jpg&w=265&zc=1',
    // 详情页地址
    ref: 'http://www.xx.net/rosi-2188/',
    // 查看人数
    view: '22,223',
    // 评论人数
    comments: '4' 
  } 
]


/**
 * InfoData 获取图片详情页图片,根据 IndexData 方法中返回的数据 title 来填。
 * 例如 title:ROSI写真-No.2188 ,那么这边应如下填写: InfoData('2188'),其他都一样。
 */
Rosi.InfoData('2188').then( $ => {
    // 打印获取到的 json 数据
    console.log($)
})

数据返回格式:
[
    {
        // 图片名
        name: 'rosi-2154-001', 
        // 大图地址
        bigimg: 'http://img1.mmxyz.net/2017/10/d28.jpg',
        // 缩略图地址
        smallimg: 'http://img1.mmxyz.net/2017/10/d28-150x150.jpg'
    }
]


License

This content is released under the MIT License.

Keywords

node

FAQs

Package last updated on 26 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts