当前位置: 科技师 » 安卓应用 » 正文

Bitmagnet:种子磁力链搜索引擎,集成DHT爬虫支持自部署

Bitmagnet(种子磁力链搜索引擎)简介

BitMagnet是种子磁力链搜索引擎,集成了BitTorrent索引器、DHT爬虫、内容分类器和种子搜索引擎等多项实用功能。该工具能够从DHT网络中自动抓取和索引磁力链接信息,无需依赖传统的中心化种子站点。通过其智能内容分类系统,可以高效地管理和搜索各种类型的数字资源,包括影视、音乐、软件等内容。提供了完整的Web用户界面。

Bitmagnet:种子磁力链搜索引擎,集成DHT爬虫支持自部署

该工具支持完全私有化部署,可以在自己的服务器上搭建个人专属的种子搜索引擎,有效保护数据隐私和使用安全。

Bitmagnet(种子磁力链搜索引擎)官网

如果需要自行部署,Docker Compose方式是最简单快捷的部署方法,只需要创建docker-compose.yml文件

services:
  bitmagnet:
    image: ghcr.io/bitmagnet-io/bitmagnet:latest
    container_name: bitmagnet
    ports:
      # API and WebUI port:
      - "3333:3333"
      # BitTorrent ports:
      - "3334:3334/tcp"
      - "3334:3334/udp"
    restart: unless-stopped
    environment:
      - POSTGRES_HOST=postgres
      - POSTGRES_PASSWORD=postgres
    #      - TMDB_API_KEY=your_api_key
    volumes:
      - ./config:/root/.config/bitmagnet
    command:
      - worker
      - run
      - --keys=http_server
      - --keys=queue_server
      # disable the next line to run without DHT crawler
      - --keys=dht_crawler
    depends_on:
      postgres:
        condition: service_healthy

  postgres:
    image: postgres:16-alpine
    container_name: bitmagnet-postgres
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    #    ports:
    #      - "5432:5432" Expose this port if you'd like to dig around in the database
    restart: unless-stopped
    environment:
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=bitmagnet
      - PGUSER=postgres
    shm_size: 1g
    healthcheck:
      test:
        - CMD-SHELL
        - pg_isready
      start_period: 20s
      interval: 10s

然后运行以下命令即可:

docker compose up -d

部署完成后,访问 http://localhost:3333 即可看到Web界面。DHT爬虫启动后,大约一分钟内就能看到爬取的种子信息出现在界面中。

未经允许不得转载:科技师 » Bitmagnet:种子磁力链搜索引擎,集成DHT爬虫支持自部署

相关文章