Skip to content

Instantly share code, notes, and snippets.

@ihercowitz
Created July 28, 2013 21:45
Show Gist options
  • Select an option

  • Save ihercowitz/6100378 to your computer and use it in GitHub Desktop.

Select an option

Save ihercowitz/6100378 to your computer and use it in GitHub Desktop.
Script para fazer download da ultima temporada de Greys Anatomy do site KickAssTorrents, utilizando o aria2c como programa de torrent e magnet links
# -*- coding: utf-8 -*-
import requests
from lxml.html import fromstring
import os
magnet=lambda x: os.system('aria2c --conf-path=$HOME/.aria2c.torrent --max-download-limit=1200K --max-upload-limit=15K --listen-port=63654 "' + x + '" -d ~/Vídeos/Seriados/Greys_Anatomy/ --seed-time=1')
for ep in range(2, 25):
if ep < 10:
ep = "0"+str(ep)
page = requests.get("http://kickass.to/usearch/greys%20anatomy%20s09e"+str(ep)).text
magep = fromstring(page).cssselect("a.imagnet")[0].get("href")
magnet(magep)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment