Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huangxizhou/dytt-reptitle

🐜 Dytt crawler
https://github.com/huangxizhou/dytt-reptitle

cheerio mongodb node-reptitle nodejs npm

Last synced: 3 months ago
JSON representation

🐜 Dytt crawler

Awesome Lists containing this project

README

        

# dytt-reptitle

>dytt8.net reptile

[![npm](https://img.shields.io/badge/npm-v1.0.3-brightgreen.svg)](https://www.npmjs.com/package/dytt-reptitle) [![Build Status](https://travis-ci.org/HuangXiZhou/dytt-reptitle.svg?branch=master)](https://travis-ci.org/HuangXiZhou/dytt-reptitle)
[![codecov](https://codecov.io/gh/HuangXiZhou/dytt-reptitle/branch/master/graph/badge.svg)](https://codecov.io/gh/HuangXiZhou/dytt-reptitle)

[![NPM](https://nodei.co/npm/dytt-reptitle.png?downloads=true&stars=true)](https://nodei.co/npm/dytt-reptitle)

## Install

```bash
npm install dytt-reptitle
```

## Usage

```js
const dyttReptitle = require('dytt-reptitle');
dyttReptitle().then(res => {
// do what you want...
});
```

## Configure

```js
// example
const config = {
page: 1,
include: [ 'title', 'imgUrl', 'desc', 'downloadLink', 'descPageLink' ]
};

dyttReptitle(options).then(res => {
// do what you want...
});
```

### config

| param | Description | Type | Required
| --- | --- | --- | --- |
| page | crawl page number | Number | true |
| include | needed data | Array | false |

### include

| param | Description | Type | Required
| --- | --- | --- | --- |
| title | movie title | String | false |
| imgUrl | movie poster | String | false |
| desc | movie description | String | false |
| downloadLink | movie download link | String | false |
| descPageLink | movie description page link | String | false |

### Response example

```js
[{ title: '2018年悬疑《拉普拉斯的魔女》BD日语中字',
imgUrl: 'https://extraimage.net/images/2018/12/04/103eda9e26f1028d9cc99f4a10c84b83.jpg',
downloadLink: 'ftp://ygdy8:[email protected]:8363/阳光电影www.ygdy8.com.拉普拉斯的魔女.BD.720p.日语中字.mkv',
descPageLink: 'https://www.dytt8.net/html/gndy/dyzz/20181204/57892.html'
}]
```

## Uninstall

```bash
npm uninstall dytt-reptitle
```

## License

MIT