Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/huangxizhou/dytt-reptitle
- Owner: HuangXiZhou
- License: mit
- Created: 2017-03-18T12:09:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T08:23:29.000Z (over 5 years ago)
- Last Synced: 2024-10-12T09:14:18.807Z (3 months ago)
- Topics: cheerio, mongodb, node-reptitle, nodejs, npm
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/dytt-reptitle
- Size: 80.1 KB
- Stars: 52
- Watchers: 3
- Forks: 25
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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