Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/raawaa/jav-scrapy

批量抓取AV磁链或封面的苦劳力
https://github.com/raawaa/jav-scrapy

Last synced: about 2 months ago
JSON representation

批量抓取AV磁链或封面的苦劳力

Awesome Lists containing this project

README

        

# jav-scrapy

一个可以爬取 AV 磁力链接或影片封面的小爬虫。

![anim.gif](https://ooo.0o0.ooo/2015/10/31/56345cf140299.gif "anim.gif")

## Prequisites

- Node.js 4.2.1+

## Installation

```bash
$ git clone https://github.com/raawaa/jav-scrapy.git
$ cd jav-scrapy
$ npm install # 安装npm包依赖
$ sudo npm link # 使jav-scrapy全局可执行
```

## Usage

```bash
Usage: jav [options]

Options:

-h, --help output usage information
-V, --version output the version number
-p, --parallel 设置抓取并发连接数,默认值:2
-t, --timeout 自定义连接超时时间(毫秒)。默认值:30000毫秒
-l, --limit 设置抓取影片的数量上限,0为抓取全部影片。默认值:0
-o, --output 设置磁链和封面抓取结果的保存位置,默认为当前用户的主目录下的 magnets 文件夹
-s, --search 搜索关键词,可只抓取搜索结果的磁链或封面
-b, --base 自定义抓取的起始页
-x, --proxy 设置代理,例:-x http://127.0.0.1:8087
-n, --nomag 是否抓取尚无磁链的影片
-a, --allmag 是否抓取影片的所有磁链(默认只抓取文件体积最大的磁链)
-N, --nopic 抓取时不抓取图片
```

### Examples

```bash
# 抓取所有影片封面、磁链、片段截图,保存到 ~/magnets 目录下以番号
# 命名的子文件夹中,并行下载数为 10
$ jav -p 10

# 抓取番号以 ipz 开头的所有影片,并保存在 /path/to/folder 中,并行抓取数 20
$ jav -s ipz -p 20 -o /path/to/folder

# 抓取番号为 ipz-634 的影片
$ jav -s ipz-634 -o /path/to/folder

# 抓取「连裤袜」主题的所有影片
$ jav -b http://www.javbus.in/genre/28

# 使用代理
$ jav -x http://127.0.0.1:8087
```

## Notes

- Windows 用户注目,如在 jav-scrapy 目录下直接运行 `jav` 命令可能会报错,可参考 [issue #1](https://github.com/raawaa/jav-scrapy/issues/1) 。
- 若影片存在高清资源,则优先抓取高清磁链。

### ❗如何更换防屏蔽地址

在项目文件夹下的 `jav.js` 文件中更换如下行的地址(大致在第18行),并保存即可:
```javascript
const baseUrl = 'https://www.buscdn.life/';
```

## Contributors

- [@qiusli](https://github.com/qiusli)
- [@Eddie104](https://github.com/Eddie104)
- [@leongfeng](https://github.com/leongfeng)