📈 Profile activity tracker for the largest Hungarian BitTorrent tracker, nCore.
Find a file
2024-10-10 17:09:05 +02:00
.github/workflows Create go.yml 2024-10-09 01:19:49 +02:00
data bara bra grejjor 2024-10-10 17:07:08 +02:00
.env.example chore: removed unused clusterfuckery env variable 2024-10-10 16:05:17 +02:00
.gitignore Init 2024-10-09 01:11:28 +02:00
docker-compose.dev.yaml bara bra grejjor 2024-10-10 17:07:08 +02:00
docker-compose.yaml bara bra grejjor 2024-10-10 17:07:08 +02:00
Dockerfile fit: add .env and profiles.json to dockerfile 2024-10-10 16:52:17 +02:00
go.mod bara bra grejjor 2024-10-10 17:07:08 +02:00
go.sum refactor: profiles are now stored in json, added displaynames 2024-10-10 16:01:08 +02:00
index.html chartjs 2024-10-09 23:44:12 +02:00
license Create license 2024-10-09 01:15:15 +02:00
main.go bara bra grejjor 2024-10-10 17:07:08 +02:00
profiles.json refactor: profiles are now stored in json, added displaynames 2024-10-10 16:01:08 +02:00
readme.md Update readme.md 2024-10-10 17:09:05 +02:00

nCore Profile Tracker

A simple Go project to scrape and track profile statistics (rank, upload, download, points) on nCore, the largest Hungarian BitTorrent tracker. The stats are displayed on a basic web interface and saved as JSON for historical tracking.

Features

  • Scrapes and logs profile stats from nCore.
  • Serves a simple HTML dashboard to display the latest data.
  • Provides a JSON API to fetch historical profile data.
  • Automatically updates data every 24 hours.

Setup

  1. Clone the repo:

    git clone https://github.com/skidoodle/trackncore.git
    cd trackncore
    
  2. Create a .env file with your nCore credentials and profile URLs:

    NICK=your_nick
    PASS=your_password
    PROFILE_1=https://ncore.pro/profile.php?id=1577943
    

How to obtain NICK and PASS

  • Open the developer tools in your browser (F12), go to the "Network" tab.
  • Log in using "lower security" mode.
  • Find the login.php request in the network activity.
  • In the response headers, locate the Set-Cookie header, which will contain nick= and pass= values.
  • Copy those values and add them to your .env file.

Running with Docker Compose

To deploy the project using Docker Compose:

  1. Create the following docker-compose.yml file:

    services:
      trackncore:
        image: ghcr.io/skidoodle/trackncore:main
        container_name: trackncore
        restart: unless-stopped
        ports:
          - "3000:3000"
        volumes:
          - data:/app/data
    
    volumes:
      data:
    
  2. Run the Docker Compose setup:

    docker-compose up -d
    
  3. Open :3000 to view your stats.

Updating

To pull the latest image and restart the service:

docker-compose pull
docker-compose up -d