/piratedex

Official repository for everything related to PirateDex.org

Primary LanguagePythonMIT LicenseMIT

piratedex

Official repository for everything related to PirateDex.org

PirateDex is a free-to-use platform that aims to provide users with reliable information about P2P downloaders to discourage piracy and promote responsible torrenting.

With PirateDex, users can easily access information about public torrents and tracker data, including IP addresses, to help protect themselves from potential legal consequences of engaging in illegal downloading activities.

Whether you are a content creator, a copyright holder, or an individual seeking to stay within the bounds of the law, PirateDex is a valuable resource for anyone looking to stay informed about the world of P2P downloading.

Website: piratedex.org

Index of files

api

  • screenWatcher.go
    • Returns output of screen -ls in JSON format
    • Example: {"screens":[], "success":true}

lists

  • trackers
    • List of popular torrent tracker domains for DNS blocklist

utils

  • magnet_parse.py

    • Python module for parsing magnets
    • Example:
      # Defined ...magnet_parse()... #
      
      magnet = 'magnet:?xt=urn:btih:000000000000000000000&dn=Example&tr=udp%3A%2F%2Fpiratedex.org%3A80&'
      
      parsed_magnet = magnet_parse(magnet)
      """
      parsed_magnet = {
        'torrent_name': 'Example',
        'info_hash': '000000000000000000000',
        'raw_hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
        'trackers': ['udp://piratedex.org:80']
      }
      """
  • find_magnets.py

    • Python module for extracting magnets from HTML source code
    • Example:
      # Defined ...find_magnets()... #
      
      some_html = "<html><body><a href="magnet:?xt=urn:btih:XXXX2FAB23AF00002A260980004590DBE7A02220&tr=udp%3A%2F%2Ftracker.bitsearch.to%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Fwww.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.breizh.pm%3A6969%2Fannounce&tr=udp%3A%2F%2F9.rarbg.com%3A2920%2Fannounce">Magnet</a></body></html>"
      
      # Find the magnets and create a generator
      magnets = find_magnets(some_html)
      
      # Iterate the generator
      for magnet in magnets:
        ...