{"id":39107213,"url":"https://github.com/skidoodle/ncore-stats","last_synced_at":"2026-01-17T19:32:02.539Z","repository":{"id":261852861,"uuid":"869802798","full_name":"skidoodle/ncore-stats","owner":"skidoodle","description":"📈 Profile activity tracker for the largest Hungarian BitTorrent tracker, nCore.","archived":false,"fork":false,"pushed_at":"2025-11-22T13:10:55.000Z","size":139,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-22T15:09:05.084Z","etag":null,"topics":["ncore","ncore-stats"],"latest_commit_sha":null,"homepage":"https://nc.albert.lol","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skidoodle.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-08T23:12:40.000Z","updated_at":"2025-11-22T13:10:54.000Z","dependencies_parsed_at":"2025-06-12T21:38:06.581Z","dependency_job_id":"9738618b-23d4-4622-8f69-12663db76692","html_url":"https://github.com/skidoodle/ncore-stats","commit_stats":null,"previous_names":["skidoodle/trackncore","skidoodle/ncore-stats"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skidoodle/ncore-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skidoodle%2Fncore-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skidoodle%2Fncore-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skidoodle%2Fncore-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skidoodle%2Fncore-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skidoodle","download_url":"https://codeload.github.com/skidoodle/ncore-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skidoodle%2Fncore-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28517083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ncore","ncore-stats"],"created_at":"2026-01-17T19:32:01.834Z","updated_at":"2026-01-17T19:32:02.523Z","avatar_url":"https://github.com/skidoodle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nCore Profile Tracker\n\nA simple Go project to scrape and track profile statistics (rank, upload, download, points) on nCore, the largest Hungarian BitTorrent tracker. The stats are stored in a SQLite database and displayed on a basic web interface.\n\n![image](https://github.com/user-attachments/assets/1496548c-0bb4-4f50-aecd-ead79759ceb0)\n\n## Features\n\n-   Scrapes and logs profile stats from nCore for multiple users.\n-   Serves a simple HTML dashboard to display the latest data and historical charts.\n-   Provides a JSON API to fetch historical profile data.\n-   Stores all data persistently in a SQLite database.\n-   Automatically updates data every 24 hours.\n\n## Setup\n\n1.  **Clone the repo:**\n\n    ```bash\n    git clone https://github.com/skidoodle/ncore-stats\n    cd ncore-stats\n    ```\n\n2.  **Create a `.env` file with your nCore credentials:**\n\n    ```ini\n    NICK=your_nick\n    PASS=your_password\n    ```\n\n3.  **Add Users to Track**\n\n    You can add users via the `--add-user` command-line flag. Run this command for each user you want to track.\n\n    The format is a single string: `'DisplayName,ProfileID'`.\n\n    ```bash\n    # Example for running from source\n    go run . --add-user 'Alice,69'\n    go run . --add-user 'Bob,420'\n    ```\n\n    \u003e **How to find a Profile ID?**\n    \u003e Navigate to a user's profile on nCore. The URL will be `https://ncore.pro/profile.php?id=12345`. The `ProfileID` is the number at the end.\n\n### How to obtain `NICK` and `PASS`\n\n-   Open the developer tools in your browser (F12), go to the \"Network\" tab.\n-   Log in to nCore using \"lower security\" mode.\n-   Find the `login.php` request in the network activity.\n-   In the response headers, locate the `Set-Cookie` header, which will contain `nick=` and `pass=` values.\n-   Copy those values and add them to your `.env` file.\n\n## Running with Docker Compose\n\n1.  **Create the following `docker-compose.yml` file:**\n\n    ```yaml\n    services:\n      ncore-stats:\n        image: ghcr.io/skidoodle/ncore-stats:main\n        container_name: ncore-stats\n        restart: unless-stopped\n        ports:\n          - \"3000:3000\"\n        volumes:\n          - ./data:/app/data\n        environment:\n            - NICK=${NICK}\n            - PASS=${PASS}\n    ```\n\n2.  **Add Users using Docker**\n\n    When the container is already running, you can use `docker exec`:\n    ```bash\n    # The executable inside the container is named 'ncore-stats'\n    docker exec ncore-stats ./ncore-stats --add-user 'Charlie,1337'\n    ```\n\n3.  **Run the Docker Compose setup:**\n\n    Once you have added your users, start the service.\n\n    ```bash\n    docker compose up -d\n    ```\n\n4.  Open `http://localhost:3000` to view your stats.\n\n### Updating\n\nTo pull the latest image and restart the service:\n\n```bash\ndocker compose pull\ndocker compose up -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskidoodle%2Fncore-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskidoodle%2Fncore-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskidoodle%2Fncore-stats/lists"}