{"id":22545357,"url":"https://github.com/modbender/tracker-scraper","last_synced_at":"2025-04-09T23:51:04.872Z","repository":{"id":62585091,"uuid":"309296136","full_name":"modbender/tracker-scraper","owner":"modbender","description":"A simple torrent tracker scraper","archived":false,"fork":false,"pushed_at":"2024-02-08T07:44:17.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T23:51:00.449Z","etag":null,"topics":["python","scraper","torrent"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/tracker-scraper/","language":"Python","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/modbender.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2020-11-02T07:55:45.000Z","updated_at":"2024-04-28T15:24:49.000Z","dependencies_parsed_at":"2024-02-08T08:43:21.109Z","dependency_job_id":null,"html_url":"https://github.com/modbender/tracker-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Ftracker-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Ftracker-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Ftracker-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Ftracker-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modbender","download_url":"https://codeload.github.com/modbender/tracker-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131455,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["python","scraper","torrent"],"created_at":"2024-12-07T14:09:43.308Z","updated_at":"2025-04-09T23:51:04.845Z","avatar_url":"https://github.com/modbender.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tracker Scraper\n\n[![Downloads](https://pepy.tech/badge/tracker-scraper)](https://pepy.tech/project/tracker-scraper)\n[![Downloads](https://pepy.tech/badge/tracker-scraper/month)](https://pepy.tech/project/tracker-scraper/month)\n[![Downloads](https://pepy.tech/badge/tracker-scraper/week)](https://pepy.tech/project/tracker-scraper/week)\n\nA simple torrent tracker scraper\n\n**NOTE: scrape for http trackers work after version \u003e= 1.1 of this package**\n\n## Installation\n\n`pip install tracker-scraper`\n\n## Usage\n\n```python\nfrom tracker_scraper import scrape\n\nresults = scrape(\n  tracker='udp://exodus.desync.com:6969',\n  hashes=[\n    \"2d88e693eda7edf3c1fd0c48e8b99b8fd5a820b2\",\n    \"8929b29b83736ae650ee8152789559355275bd5c\"\n  ]\n)\n\nprint(results)\n```\n\n`scrape` Returns the list of seeds, peers and downloads a torrent info_hash has, according to the specified tracker\n\nArgs:\n\n- `tracker` (str): The announce url for a tracker, usually taken directly from the torrent metadata.\n- `hashes` (list): A list of torrent info_hash's to query the tracker for\n\nReturns:  \nA dict of dicts. The key is the torrent info_hash's from the 'hashes' parameter,\nand the value is a dict containing \"seeds\", \"peers\" and \"complete\".\n\n#### Example:\n\n```json\n{\n  \"2d88e693eda7edf3c1fd0c48e8b99b8fd5a820b2\": {\n    \"seeds\": \"34\",\n    \"peers\": \"189\",\n    \"complete\": \"10\"\n  },\n  \"8929b29b83736ae650ee8152789559355275bd5c\": {\n    \"seeds\": \"12\",\n    \"peers\": \"0\",\n    \"complete\": \"290\"\n  }\n}\n```\n\n## Credits\n\nCode taken from project [m2t](https://github.com/erindru/m2t/blob/master/m2t/scraper.py) by Erin Drummond ([erindru](https://github.com/erindru)). Originally written in Python 2.7, updated code to Python 3+ and now using requests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodbender%2Ftracker-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodbender%2Ftracker-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodbender%2Ftracker-scraper/lists"}