/MagnetMagnet

MagnetMagnet is a scraper that allows you to scrape torrent information, such as: magnet links, name, size, seeders and leachers, from Kick Ass Torrents, Nyaa, RARBG, The Pirate Bay and 1377x in any category and sub category

Primary LanguagePythonMIT LicenseMIT

What is this repo?

MagnetMagnet is well, a magnet link magnet, it's a scraper that allows you to scrape torrent magnet links from a range of torrent indexers. I decided to make this app to improve my Python skills.

Features supported:

  • Supported torrent indexers:
    • 1377x
    • Kick Ass Torrents
    • Nyaa
    • RARBG
    • The Pirate Bay
  • Scraping magnet links using specific keywords
  • Choosing the category/subcategory to scrape magnet links from
  • Exporting magnet links to a .txt file in local directory
  • Copy specific magnet links to the clipboard on click
  • Sort alphabetically, by most seeders or by most leechers (and vice versa)
  • Auto version checker
  • Cross platform

To do list:

  • Add Nyaa support
  • Add maximum scraping limit
  • Add a self updater
  • Make scraping asynchronous

Installation

  • Windows: To install MagnetMagnet either download the latest executable file from here
  • Other: If you're using Linux/MacOS or the above methods for Windows didn't work, you can download the entire repository from here and run main.py using Python, dependencies must be installed with pip install -r requirements.txt

Usage:

Home Screen:

  • On launch you get five options of torrent indexers to scrape from: 1377x, Kick Ass Torrents, Nyaa, RARBG and The Pirate Bay
  • There is also a sixth tab named 'Search' which allows you to scrape the aforementioned torrent indexers for specific words

Home Screen

Search:

  • In the Search app you have four user editable fields:
  • Checkboxes: you can select/deselect the torrent indexers you would like to search from
  • Search box: here you enter the search query you would like to scrape
  • Table: the table displays the title names, seeders and leechers for the torrents scraped, here you can copy the magnet link you would like by selecting a row
  • Slider the slider allows you to limit the amount of torrents scraped per torrent indexer

Search

Scrapers:

  • There are only two user changeable fields in the scraper apps:
  • Domain: the first field is for the domain, here just choose the torrent indexer's domain
  • Category: the second field is for the category which you can choose from the drop down box

Scrapers

Building

  • Create a Python virtual environment and activate it
  • Install all the requirements in requirements.txt (you need to have wheel installed beforehand)
  • Then install pyinstaller with pip install pyinstaller
  • Run pyinstaller -n MagnetMagnet -i ./src/icon.ico -w -F main.py