Coder Social home page Coder Social logo

dhtspider's Introduction

DHTSpider

A Very Simple Spider With DHT Crawler, Written by C#.

  • The bittorrent library bases on MonoTorrent.

介绍

DHTSpider 是一个由C#编写的 DHT 爬虫, 从全球DHT 网络里"嗅探"正在下载的资源, 并把资源metadata(种子信息)进行抓取下载.

相关

Cache

  • 使用 Memory > UseDefaultCache ( 默认 )
  • 使用 Redis > UseRedisCache ( TODO )

Queue

  • 使用 Memory > UseDefaultQueue ( 默认 )
  • 使用 Redis > UseRedisQueue ( TODO )

Store

  • 使用 MongoDB > UseMongoDBStore ( TODO )
  • 使用 ElasticSearch > UseElasticSearchStore ( TODO )

Log > NLog

Ioc > Autofac

环境

  1. .net 版本 >=4.5.2

  2. 运行的机器需要独立IP , 内网机器需要做下端口映射

使用

    var spider = SpiderConfiguration.Create() //使用默认配置
    .UseDefaultCache() //默认使用内存缓存
    .UseDefaultQueue() //默认使用内存队列
    .Start();

配置

    
    var spider = SpiderConfiguration.Create(new SpiderSetting()
    {
        LocalPort = 6881, //使用端口
        IsSaveTorrent = true, //是否保存torrent
        TorrentSavePath = "", //torrent保存路径
        MaxSpiderThreadCount = 1, //爬虫线程数
        MaxDownLoadThreadCount = 20 //下载线程数
    })
    .UseRedisCache() //使用redis缓存
    .UseRedisQueue() //使用redis队列
    .UseMongoDBStore() //使用mongodb存储
    .Start();
    

dhtspider's People

Contributors

zhangkong828 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.