{"id":13897222,"url":"https://github.com/notjedi/pyratebay","last_synced_at":"2025-07-17T14:30:39.046Z","repository":{"id":51612806,"uuid":"243814514","full_name":"notjedi/pyratebay","owner":"notjedi","description":"Python script to download torrents from piratebay.","archived":true,"fork":false,"pushed_at":"2021-11-07T20:20:30.000Z","size":10800,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-07T18:43:10.111Z","etag":null,"topics":["cli","download-movies","download-songs","downloader","piratebay","pirated-sites","scrapper","search","torrent","torrent-downloader","torrent-files"],"latest_commit_sha":null,"homepage":"","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/notjedi.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}},"created_at":"2020-02-28T17:08:51.000Z","updated_at":"2024-05-07T13:50:13.000Z","dependencies_parsed_at":"2022-08-21T23:40:23.954Z","dependency_job_id":null,"html_url":"https://github.com/notjedi/pyratebay","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/notjedi%2Fpyratebay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notjedi%2Fpyratebay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notjedi%2Fpyratebay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notjedi%2Fpyratebay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notjedi","download_url":"https://codeload.github.com/notjedi/pyratebay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226270397,"owners_count":17598075,"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":["cli","download-movies","download-songs","downloader","piratebay","pirated-sites","scrapper","search","torrent","torrent-downloader","torrent-files"],"created_at":"2024-08-06T18:03:26.376Z","updated_at":"2024-11-25T03:30:44.220Z","avatar_url":"https://github.com/notjedi.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# pyDownloader\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src = \"images/piratebay.png\" height = 300px width = 300px\u003e\n\u003c/p\u003e\n\n\u003e Downloading torrents from pirated sites is bit of a hassle. This Python based CLI helps you to download torrents with ease.\n\n## Dependencies\n\n- BeautifulSoup - `pip install bs4`\n- Selenium - `pip install selenium`\n\n## Requirements\n\nAny of the following browsers:\n\n- Chrome (Supports headless mode)\n- Firefox\n- Internet Explorer\n\n\u003e Note: Support for Firefox and IE browsers has not been implemented yet\n\n## Usage\n\n```\nusage: pyratebay.py [-h] [-c [{all,audio,video,apps,games,other}]] query\n\npositional arguments:\n  query                 Name of the media to download\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -c, --category [{all,audio,video,apps,games,other}]\n                        Searches for the given 'name' in the specified\n                        category (default = all)\n```\n\n## From a developer standpoint\n\nThe newly updated pirate bay sites work differently. It fetches the data only after loading the webpage. The table is dynamically populated by JavaScript, this makes it impossible to scrape the data of the webpage using the normal `requests` or `urllib` module as it only returns a basic HTML content of the webpage without any table and other stuff. To overcome this problem, one should let the webpage load first and then scrape the contents of the webpage using the `selenium` or `bs4` modules. This way of scraping the web is known as dynamic web scraping, which is indeed implemented in this program.\n\n\u003cbr\u003e\n\n![demo.gif](images/demo.gif)\n\n\u003cbr\u003e\n\n## Credits\n\n- [webdriver_manager](https://github.com/SergeyPirogov/webdriver_manager) - simplifies the management of binary drivers for different browsers\n\n## License\n\n[MIT](LICENSE) LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjedi%2Fpyratebay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotjedi%2Fpyratebay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjedi%2Fpyratebay/lists"}