Giter Club home page Giter Club logo

pstorrent's Introduction

PsTorrent

This is a PowerShell module for working with torrents from EZTV, YTS, ExtraTorrnet, Torrentz, and the PirateBay. If you would like another site to be added, use the Issues feature here.

Returns objects that have magnet uris as properties. This module requires a torrent client to already be installed and set to be associated with Magnet Links. qBittorent, uTorrent, etc for downloading torrents to work.

It is best to already have the torrent client application running before running these commands, but is not required.

Instructions

# One time setup
    # Download the repository
    # Unblock the zip
    # Extract the PsTorrent folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)

# Import the module.
    Import-Module PsTorrent   #Alternatively, Import-Module \\Path\To\PsTorrent\PsTorrent.psm1

# Get commands in the module
    Get-Command -Module PsTorrent

# Get help
    Get-Help Search-PirateBay

    Get-Help Get-NewMovieRelease

Examples

Seaching the PirateBay

# Search the PirateBay and Download the selected torrents

$Results = Search-PirateBay -Query "Gorillaz"
$Selected = $Results | Out-GridView -Passthru
$Selected | Start-MagnetLink

Search EZTV for TV Shows

# Search EZTV for a specific show and season, in this case season 7 of The Walking Dead and only 720p videos
$WalkingDead = Search-EZTV -Filter "Walking Dead"
$SeasonSeven = $WalkingDead | Where {$_.Season -eq 7 -and $_.QualityInfo -like "*720p*"}
$SeasonSeven | ForEach-Object {
    $_.DownloadTorrent()
}

Use EZTV API

# Get the first ten results from the API and download them
Get-EZTVApi | Start-MagnetLink

Search YTS for a movie

# Search YTS for a specific movie, in this case La La Land in 720p, and start a download of it.
Get-YTSMovies -Movie "La La Land" -Quality 720p |
Start-MagnetLink

Search Torrentz

# Search torrentz.ht, select the results using Out-GridView and start a download of selected ones.
$LinuxOS = Search-Torrentz -Query "ubuntu iso"
$LinuxOS | Out-GridView -PassThru |
Start-MagnetLink

Search ExtraTorrent

# Search ExtraTorrnet, select the results using Out-GridView and start a download of the selected ones.
$Vernes = Search-ExtraTorrent -Query "Jules Verne"
$Selected = $Vernes | Out-GridView -PassThru
$Selected | ForEach-Object {
    $_.DownloadTorrent()
}

Search All

# Search using all of the Search functions in the module
$AllResults = Search-AllTorrents -Query "Limitless"

# Pick from menu what to download
$AllResults | Out-GridView -PassThru |
Start-MagnetLink

pstorrent's People

Contributors

assives avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pstorrent's Issues

Add Date Property to Search-EZTV results

This is great.
I've been using it since I saw it here last week.
Any way to get the date or age of the link in? I can see it in the API but can't work out how to search on the API. I have got the search down pat but can't find dates in it.
An example of what I am thinking
Search-EZTV -filter "Silicon Valley" | where{$_.age -lt (get-date).AddDays(-1)}

-Via Reddit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.