Code Monkey home page Code Monkey logo

p2pspider-1's Introduction

介绍

p2pspider 是一个种子爬虫, 它从全球 P2P 网络下载当前活跃的种子。

English document

用途

你可以使用 p2pspider 打造私人种子库(比如: 海盗湾), 也可做资源数据挖掘与分析(比如哪一个国家贡献小电影最多)。

安装

从源码安装

go get github.com/fanpei91/p2pspider

下载可执行文件

Download p2pspider

使用

p2pspider -h

Usage of p2pspider:
  -a string
    	listen on given address (default "0.0.0.0")
  -d string
    	the directory to store the torrent file (default "/$HOME/torrents")
  -e int
    	max peers(TCP) to connenct to download torrent file (default 400)
  -f int
    	max friends to make with per second (default 500)
  -p int
    	listen on given port (default 6881)
  -s string
    	token secret (default "$p2pspider$")
  -t duration
    	max time allowed for downloading torrent file (default 10s)
  -v	run in verbose mode (default true)

使用举例

#使用默认参数
p2pspider

注意

请在有公网IP的主机上运行,若要在内网执行,需要设置NAT映射。建议选择前者。

参考

bep_0005, bep_0003, bep_0010, bep_0009

许可证

MIT


Introduction

p2pspider is a torrent spider, it crawls torrents that people are using to download resource from the P2P network.

What you can do with it

You can use p2pspider to build your own torrent database(e.g: The Pirate Bay), or data mining and analyzing.

Install

compile from source code

go get github.com/fanpei91/p2pspider

Download executable p2pspider

Download p2pspider

Usage

p2pspider -h

Usage of p2pspider:
  -a string
    	listen on given address (default "0.0.0.0")
  -d string
    	the directory to store the torrent file (default "/$HOME/torrents")
  -e int
    	max peers(TCP) to connenct to download torrent file (default 400)
  -f int
    	max friends to make with per second (default 500)
  -p int
    	listen on given port (default 6881)
  -s string
    	token secret (default "$p2pspider$")
  -t duration
    	max time allowed for downloading torrent file (default 10s)
  -v	run in verbose mode (default true)

Usage example

#default arguments
p2pspider

Notice

p2pspider only works on a host which has a public ip.

Feferences

bep_0005, bep_0003, bep_0010, bep_0009

License

MIT

p2pspider-1's People

Contributors

fanpei91 avatar welefen avatar shuding avatar radiantmoxie avatar sean-liang avatar

Watchers

James Cloos avatar  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.