Giter Site home page Giter Site logo

openbay-crawler's Introduction

openbay crawler

A bittorrent mainline dht crawler that fetch torrents files via the magnet system or torcache. It runs multiple instance of the dht concurrently to be able to feed a database from the torrents currently downloaded within the dht.

dependancies

  • python 2.7
  • python-progressbar
  • python-zmq
  • python-mysqldb
  • python-chardet
  • python-psutil
  • python-netaddr
  • btdht (linked as submodule)
  • cython (for btdht)
  • datrie (for btdht, linked as submodule)

usage

First, you'll need to compile the btdht and datrie modules. Go in the datrie subdirectory and run ./setup.py build. Do the same in the python-btdht subdirectory.

Copy config_sample.py to config.py and edit to reflect your db settings. Make sure your torrents table has all the needed columns. You can use sql/update.sql to update your torrents table from an openbay install. Otherwise, use sql/schema.sql to create it. Beware that sql/schema.sql will destroy existing torrents table before recreating it.

Then create the directories torrents_dir, torrents_done, torrents_archive, and torrents_new as you specified them in config.py

Run ./crawler.py to start crawling the dht and ./feed.py to feed the database with discovered torrents.

Moreother ./feed.py will send the hash of new discovered torrents to others running ./feed.py and scrape torrents agains udp://open.demonii.com:1337

Notes

./feed.py will insert the torrents in the 'other' category using the torrent name as name, the list of files as description and try to upload it on torcache.

openbay-crawler's People

Contributors

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