![]() |
| ||
| brain stroming ideas for program I would like to write an application that would search a site like "minitorrents.com" and automatically download torrent files of tv shows I like. I am thinking urllib.py might be able to do something like this. I need to be able to use the search feature of "minitorrents.com", then recursivley follow a few levels into the sight, until my torrent file is found, then download it. Any ideas or suggestions would be appreciated. |
| ||
| Re: brain stroming ideas for program I have found a sight that uses rss feeds. I can use the module feedparser.py to get most of the job done. Here is where I am stuck. I get a url that looks like this, using feedparser.py http://isohunt.com/btDetails.php?ihq...ens&id=6071088 on this page(the link above) their is a link I click on called "download.torrent". Then that opens up the save dialog in my browser that allows me to download the torrent file. Is there a way to download this torrent file, aoutomatically(not using my web browser) using urllib2 or some other module? |
| ||
| Re: brain stroming ideas for program I was overcomplicating it, this was all I needed urllib.urlretrieve('http://isohunt.com/download.php?mode=bt&id=6071088', 'king.torrent') |
| ||
| Re: brain stroming ideas for program This is pretty complex programming. You are leaving me in awe! Where do you get the idea in first place? |
| ||
| Re: brain stroming ideas for program I am petty obsessed with automating any thing that can be automated. It seemed like a natural thing to automate my torrent downloads. I should have part of the script hacked out this weekend :-) |
| ||
| Re: brain stroming ideas for program Quote:
|
| ||
| Re: brain stroming ideas for program Sorry, awe might not be the corrected word. I am impressed how you get idea and quickly know how to tackle with Python! I feel weak there. Maybe my brains is too saturated with C. |
| ||
| Re: brain stroming ideas for program Thank you for the compliment :-) If I do have a skill, it is hacking out short useful scripts(nothing technically complex). I figure the best way to learn python is by coding stuff. So I will try and code just about anything that can be coded(at my level of expertise). I am always looking for ideas. edit adde later// that is why I like python so much. You can impliment an idea very fast, without a whole lot of programming experience. It is very satisfieing to have something work and be useful, after just a few hours of coding. |
| ||
| Re: brain stroming ideas for program I am always so impressed at the ease of using python. It lets you make such useful stuff with so little code(or programming experience). This program depends on the python module feedparser (available at feedparser.org), It uses rss feeds provided by isohunt. The idea is you just need to to set your televison shows in this variable. below is a sample variable feeds = [ ('medium', 350), ('the king of queens', 175), ('invasion', 350), ('two and a half men', 175), ('er', 0), ('yes dear', 175), ('deadwood', 0) ]you need to set two parts, the first is the title. Make sure you include the full title, including works like: 'and', 'a', and 'the'. The second number is the file size of your avifiles. If you do not want to specify a target file size, set it to 0. it seems you can only get current shows for about 5 to 6 days after they were released. So long as you run the script every 4 or so days you will not miss any new shows to run it on linux, change to the directory you want your torrent files saved, then just run the script. to run it on windows, just drag the file to the directory you want your torrents saved to and click on the icon. here is the code #!/usr/bin/env python |
| All times are GMT -4. The time now is 11:07 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC