Created
July 28, 2013 21:45
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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