Code Monkey home page Code Monkey logo

jav-scrapy's Introduction

jav-scrapy

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

anim.gif

Prequisites

  • Node.js 4.2.1+

Installation

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

Usage

  Usage: jav [options]

  Options:

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

Examples

# 抓取所有影片封面、磁链、片段截图,保存到 ~/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
  • 若影片存在高清资源,则优先抓取高清磁链。

Contributors

jav-scrapy's People

Contributors

birdyg avatar hongjie104 avatar newdolphintime avatar pminmax945 avatar qiusli avatar raawaa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.