{"id":16156770,"url":"https://github.com/hemantapkh/1337x","last_synced_at":"2025-04-07T12:07:21.934Z","repository":{"id":43073542,"uuid":"360964018","full_name":"hemantapkh/1337x","owner":"hemantapkh","description":"✖️ Unofficial API of 1337x.to","archived":false,"fork":false,"pushed_at":"2024-07-15T16:17:50.000Z","size":109,"stargazers_count":104,"open_issues_count":5,"forks_count":25,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-11T01:46:18.439Z","etag":null,"topics":["1337x","1337x-api","1337x-to","torrent-search-api","torrents"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/1337x","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hemantapkh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://buymeacoffee.com/hemantapkh"]}},"created_at":"2021-04-23T17:49:34.000Z","updated_at":"2024-08-06T00:17:47.000Z","dependencies_parsed_at":"2024-10-25T17:08:36.279Z","dependency_job_id":"2880cbe3-23b3-42c7-b1ec-ea9c39f4b97e","html_url":"https://github.com/hemantapkh/1337x","commit_stats":{"total_commits":58,"total_committers":5,"mean_commits":11.6,"dds":"0.13793103448275867","last_synced_commit":"3b044a2c48fa5b263ee712b2a5fcef539f53555b"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantapkh%2F1337x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantapkh%2F1337x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantapkh%2F1337x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantapkh%2F1337x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemantapkh","download_url":"https://codeload.github.com/hemantapkh/1337x/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":["1337x","1337x-api","1337x-to","torrent-search-api","torrents"],"created_at":"2024-10-10T01:46:24.613Z","updated_at":"2025-04-07T12:07:21.905Z","avatar_url":"https://github.com/hemantapkh.png","language":"Python","funding_links":["https://buymeacoffee.com/hemantapkh"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/hemantapkh/1337x/blob/main/images/1337x.png?raw=true\" align=\"center\" height=205 alt=\"1337x\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pypi.org/project/1337x\"\u003e\n\u003cimg src='https://img.shields.io/pypi/v/1337x.svg'\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/1337x\"\u003e\n\u003cimg src='https://pepy.tech/badge/1337x'\u003e\n\u003c/a\u003e\n\u003cimg src='https://visitor-badge.laobi.icu/badge?page_id=hemantapkh.1337x'\u003e\n\u003ca href=\"https://github.com/hemantapkh/1337x/stargazers\"\u003e\n\u003cimg src=\"https://img.shields.io/github/stars/hemantapkh/1337x\" alt=\"Stars\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/hemantapkh/1337x/issues\"\u003e\n\u003cimg src=\"https://img.shields.io/github/issues/hemantapkh/1337x\" alt=\"Issues\"/\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\nThe ultimate Python API wrapper for 1337x.\n\n\u003cp align=\"center\"\u003e\n\n## Table of Contents\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n   - [Examples](#examples)\n   - [Asynchronous Usage](#asynchronous-usage)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\nInstall via [PyPi](https://www.pypi.org/project/1337x):\n```bash\npip install 1337x\n```\n\nOr install from the source:\n```bash\npip install git+https://github.com/hemantapkh/1337x\n```\n\n\n## Examples\n\n### Searching Torrents\n```python\nimport py1337x\n\ntorrents = py1337x.Py1337x()\n\n# Basic search\nresults = torrents.search('ubuntu', page=1)\nfor result in results.items:\n  print(f\"Title={result.name} Seeders={result.seeders}\")\n\n# Search with sorting by seeders\nresults = torrents.search('vlc', sort_by=py1337x.sort.SEEDERS, category=py1337x.category.APPS)\nprint(results)\n\n# Get today's trending torrents\nresults = torrents.trending()\nprint(results)\n```\n\n### Getting Torrent Information\nTo get magnetlink and other information of the torrent.\n```python\n# Getting info the the first result of the above search\ntorrent_id = results.items[0].torrent_id\ninfo = torrents.info(torrent_id=torrent_id)\nprint(info)\n\n# Convert the result to dictionary\ninfo_dict = info.to_dict()\nprint(info_dict)\n```\n\n## Asynchronous Usage\nFor asynchronous usage, all functionalities are the same; use `AsyncPy1337x` instead of `Py1337x`:\n\n```python\nimport asyncio\nfrom py1337x import AsyncPy1337x\n\nasync def main():\n    torrents = AsyncPy1337x()\n    results = await torrents.search('vlc media player')\n    print(results)\n\nasyncio.run(main())\n```\n\n## Documentation\n\nThe detailled documentation of the project is available [here](https://1337x.readthedocs.org/en/latest/).\n\n## Contributing\n\nAny contributions you make are **greatly appreciated**.\n\n*Thanks to every [contributors](https://github.com/hemantapkh/1337x/graphs/contributors) who have contributed in this project.*\n\n## License\n\nDistributed under the MIT License. See [LICENSE](https://github.com/hemantapkh/1337x/blob/main/LICENSE) for more information.\n\n-----\nAuthor/Maintainer: [Hemanta Pokharel](https://github.com/hemantapkh/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantapkh%2F1337x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemantapkh%2F1337x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantapkh%2F1337x/lists"}