dytt-reptitle
v1.0.9
Published
电影天堂爬虫
Downloads
7
Readme
dytt-reptitle
dytt8.net reptile
Install
npm install dytt-reptitle
Usage
const dyttReptitle = require('dytt-reptitle');
dyttReptitle().then(res => {
// do what you want...
});
Configure
// 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
[{ 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
npm uninstall dytt-reptitle
License
MIT