{ "info": { "author": "azerty", "author_email": "ziggs@airmail.cc", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Torrent Tracker Scraper\n\nA UDP torrent tracker scraper written in Python 3 \n\n![Coverage SVG](docs/imgs/coverage.svg)\n[![PyPI version](https://badge.fury.io/py/torrent-tracker-scraper.svg)](https://badge.fury.io/py/torrent-tracker-scraper)\n[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)\n\n\n\n### Installation\n\n```bash\npip install torrent-tracker-scraper\n```\n\n\n\n## Usage\n\nThe package can be used either as a module within a script or straight up from the commandline.\n\n### As a python module\n\npass in a single infohash\n\n```python\nfrom torrent_tracker_scraper import scraper\n\nscraper = scraper.Scraper(\"tracker.coppersuffer.tk\", 6969, json=True)\n\nresults = scraper.scrape(\"95105D919C10E64AE4FA31067A8D37CCD33FE92D\")\nprint(results)\n\n{'tracker': 'tracker.coppersuffer.tk', 'results': [{'infohash': '95105D919C10E64AE4FA31067A8D37CCD33FE92D', 'seeders': 112, 'completed': 496, 'leechers': 2}]}\n```\n\npass in multiple infohashes separated by commas\n\n```python\nresults = scraper.scrape(\"95105D919C10E64AE4FA31067A8D37CCD33FE92D,913EF55D5DD1A9376B738922E5104B3A1BE3754A\")\nprint(results)\n\n{'tracker': 'tracker.coppersuffer.tk', 'results': [{'infohash': '95105D919C10E64AE4FA31067A8D37CCD33FE92D', 'seeders': 112, 'completed': 496, 'leechers': 2}, {'infohash': '913EF55D5DD1A9376B738922E5104B3A1BE3754A', 'seeders': 334, 'completed': 989, 'leechers': 250}]}\n```\npass in a list of infohashes\n\n```python\nresults = scraper.scrape([\"913EF55D5DD1A9376B738922E5104B3A1BE3754A\", \"95105D919C10E64AE4FA31067A8D37CCD33FE92D\"])\nprint(results)\n\n{'tracker': 'tracker.coppersuffer.tk', 'results': [{'infohash': '913EF55D5DD1A9376B738922E5104B3A1BE3754A', 'seeders': 334, 'completed': 989, 'leechers': 250}, {'infohash': '95105D919C10E64AE4FA31067A8D37CCD33FE92D', 'seeders': 112, 'completed': 496, 'leechers': 2}]}\n```\n\nGet your scrap information\n\n\n\n### Testing\n\n```bash\npython -m unittest discover tests\n```\n\n\n\n### Help/Contributing\n\nUse the normal GitHub bug reporting flow i.e Create an issue here \n.\n\nFork the code, make your changes and create a pull request.\n\n### Behind the scenes\n\nFor a detailed quick rundown of whats going on behind the scenes\n\n\n\n\n\n### Contributors\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/49e94b8f256530dc0d41f740dfe8a4c1/torrent-tracker-scraper", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "torrent-tracker-scraper", "package_url": "https://pypi.org/project/torrent-tracker-scraper/", "platform": "", "project_url": "https://pypi.org/project/torrent-tracker-scraper/", "project_urls": { "Homepage": "https://github.com/49e94b8f256530dc0d41f740dfe8a4c1/torrent-tracker-scraper" }, "release_url": "https://pypi.org/project/torrent-tracker-scraper/1.1.3/", "requires_dist": null, "requires_python": "", "summary": "A UDP torrent tracker scraper written in Python 3", "version": "1.1.3" }, "last_serial": 5530254, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "808df96a21cb4e13a87238d5bc9cd855", "sha256": "f812986901e5369ad085db135e25374fa6ead139e198c9b0ffd6c70bc894d9f6" }, "downloads": -1, "filename": "torrent-tracker-scraper-1.1.0.tar.gz", "has_sig": false, "md5_digest": "808df96a21cb4e13a87238d5bc9cd855", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4942, "upload_time": "2019-07-03T19:56:04", "url": "https://files.pythonhosted.org/packages/b2/7a/49de0d06b65941878860fb9445f6c1c2863d00bf640899931dc6ee295300/torrent-tracker-scraper-1.1.0.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "dec1e7ed9fc0249bc0037ac427316e61", "sha256": "9455cdefab1d504f77a0a76deacf9c58b1d5305e2c6c2c06aed21626efcb04c2" }, "downloads": -1, "filename": "torrent-tracker-scraper-1.1.3.tar.gz", "has_sig": false, "md5_digest": "dec1e7ed9fc0249bc0037ac427316e61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5069, "upload_time": "2019-07-14T08:04:43", "url": "https://files.pythonhosted.org/packages/14/a2/e9bb7fd7876c38c903ad7072d4733f6de8771de80fc8b29c39e8e6a632e3/torrent-tracker-scraper-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dec1e7ed9fc0249bc0037ac427316e61", "sha256": "9455cdefab1d504f77a0a76deacf9c58b1d5305e2c6c2c06aed21626efcb04c2" }, "downloads": -1, "filename": "torrent-tracker-scraper-1.1.3.tar.gz", "has_sig": false, "md5_digest": "dec1e7ed9fc0249bc0037ac427316e61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5069, "upload_time": "2019-07-14T08:04:43", "url": "https://files.pythonhosted.org/packages/14/a2/e9bb7fd7876c38c903ad7072d4733f6de8771de80fc8b29c39e8e6a632e3/torrent-tracker-scraper-1.1.3.tar.gz" } ] }