[RELEASE] The Pirate Bay Scraper Plugin

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
twotone8 Offline
Senior Member
Posts: 130
Joined: Apr 2010
Reputation: 0
Post: #21
is there any way to use this with utorrent adder as opposed to the actual utorrent.exe?

i'm using this guide to automate my torrent downloads and i'm finding great success with it.

basically, all of my utorrent activity is taking place on a virtual machine on the home network. utorrent adder allows me to direct each click on a torrent link to the utorrent running on this virtual machine (through magic i assum). i'm not entirely sure how it works. all i know is that utorrent adder asks to be associated with the .torrent files and magnet links. when i click on a torrent file, it doesn't open on the utorrent on the local machine, but the virtual one.

i'd like to be able to use this with the pirate bay scraper, and i'm pretty sure it could work, but i'm not exactly sure how this plugin opens or manages the torrent files it's supposed to download. i renamed 'utorrent adder.exe' to 'utorrent.exe' and directed the plugin to the 'utorrent adder folder', but so far that doesn't seem to work. how exactly does this scraper open the torrent files? i assume it's a command line thing with the actual utorrent.exe. would it be at all possible to change the code so that it simply opens the .torrent file with teh program it's supposed to be associated with? thanx for all the help.

edit: just to clarify, it's still quite useful with this virtual install. i simply tell the plugin the url of my dynamic dns, and i'm able to manage the torrents operating on the virtual utorrent through it's own webui, it's just a matter of starting the torrents from this virtual install.

here are the utorrent adder command line options if it's of any help.

-profile="PROFILE NAME"
Add .torrent files to the specified profile name

-file="LOCAL TORRENT FILE PATH"
Add the specified local .torrent file

-url="TORRENT FILE URL"
Add the specified .torrent file URL
(This post was last modified: 2010-05-03 04:53 by twotone8.)
find quote
zilexa Offline
Senior Member
Posts: 296
Joined: Nov 2008
Reputation: 0
Location: Amsterdam
Post: #22
Why are you using virtual machine at all? Thats just crazy, a vm for utorrent?
find quote
zilexa Offline
Senior Member
Posts: 296
Joined: Nov 2008
Reputation: 0
Location: Amsterdam
Post: #23
Btw i've seen that guide before and it's such a waiste of time, except for unpacking rar, everything can be done automatically without all that hassle. Just set your rss feeds and rss downloader, and you are done. Rar files are not in my rss so even that's no issue. Seems like this guy has extremely overdone all this and people follow him blindly.
find quote
twotone8 Offline
Senior Member
Posts: 130
Joined: Apr 2010
Reputation: 0
Post: #24
i dunno, there are advantages to having everything setup once and then you're done. you can port the thing to any pc you want. my virtualmachine is running Windows Fundamentals for Legacy PCs, so the resource footprint is completely negligible. it also keeps things nice and tidy. there are several layers of applications monitoring other applications and i'd prefer to have them all in one tidy corner. in any case, it doesn't seem to be out of the question to get the pluggin working with utorrent adder. i could probably rig something up myself if i knew how the plugin launched the .torrent files. would it be possible for a python newbie to deconstruct the script and poke around a bit?
find quote
bonecrusher8 Offline
Junior Member
Posts: 38
Joined: Apr 2010
Reputation: 0
Post: #25
twotone8 Wrote:is there any way to use this with utorrent adder as opposed to the actual utorrent.exe?

i'm using this guide to automate my torrent downloads and i'm finding great success with it.

basically, all of my utorrent activity is taking place on a virtual machine on the home network. utorrent adder allows me to direct each click on a torrent link to the utorrent running on this virtual machine (through magic i assum). i'm not entirely sure how it works. all i know is that utorrent adder asks to be associated with the .torrent files and magnet links. when i click on a torrent file, it doesn't open on the utorrent on the local machine, but the virtual one.

i'd like to be able to use this with the pirate bay scraper, and i'm pretty sure it could work, but i'm not exactly sure how this plugin opens or manages the torrent files it's supposed to download. i renamed 'utorrent adder.exe' to 'utorrent.exe' and directed the plugin to the 'utorrent adder folder', but so far that doesn't seem to work. how exactly does this scraper open the torrent files? i assume it's a command line thing with the actual utorrent.exe. would it be at all possible to change the code so that it simply opens the .torrent file with teh program it's supposed to be associated with? thanx for all the help.

edit: just to clarify, it's still quite useful with this virtual install. i simply tell the plugin the url of my dynamic dns, and i'm able to manage the torrents operating on the virtual utorrent through it's own webui, it's just a matter of starting the torrents from this virtual install.

here are the utorrent adder command line options if it's of any help.

-profile="PROFILE NAME"
Add .torrent files to the specified profile name

-file="LOCAL TORRENT FILE PATH"
Add the specified local .torrent file

-url="TORRENT FILE URL"
Add the specified .torrent file URL

Oh my god that's a lot of typing. Don't you have a video version of the requestLaugh. Now getting serious, i thing utorrent adder it would be a waste of time, because the adder bassically uses utorrent web ui, which i also do in my plugin for the utorrent monitor part and torrentz.com. Let me explain how torrentz code works. When you decided to download a torrent from torrentz it sends the selected link via web interface to the utorrent with web ui settings specified in plugin settings. So some of what you are asking is already implemented.
Now in order to test it you must configure the plugin correctly. Localhost or 127.0.0.1 are reserved ips for internal procces, means that you use them when you have utorrent on the same pc. If you want to connect to utorrent on an other pc or vm in your case which is the same, you must put the ip you have on that machine.
If you can use the integrated utorrent monitor it means that the connection is working properly and theoretically you can already use torrentz with the vm and that long guideLaugh. The pirate bay needs some modification in order to work. But i won't modify it until you get torrentz working.
find quote
bonecrusher8 Offline
Junior Member
Posts: 38
Joined: Apr 2010
Reputation: 0
Post: #26
twotone8 Wrote:i dunno, there are advantages to having everything setup once and then you're done. you can port the thing to any pc you want. my virtualmachine is running Windows Fundamentals for Legacy PCs, so the resource footprint is completely negligible. it also keeps things nice and tidy. there are several layers of applications monitoring other applications and i'd prefer to have them all in one tidy corner. in any case, it doesn't seem to be out of the question to get the pluggin working with utorrent adder. i could probably rig something up myself if i knew how the plugin launched the .torrent files. would it be possible for a python newbie to deconstruct the script and poke around a bit?

Your are partially right. It can become platform independent. Never thought of that, actually i did. But if you use utorrent adder it restricts you to windows. If you use utorrent web ui you can use it on virtually any platform because they all support http protocol. Meaning if you can use xbmc and and a web browser it should work. Nowwww get to work and keep me posted.Laugh
find quote
bonecrusher8 Offline
Junior Member
Posts: 38
Joined: Apr 2010
Reputation: 0
Post: #27
@zilexa: do you know if it is possible to update list items? I think it would be nice if torrent progress would automatically update itself like in utorrent.
(This post was last modified: 2010-05-03 15:39 by bonecrusher8.)
find quote
zilexa Offline
Senior Member
Posts: 296
Joined: Nov 2008
Reputation: 0
Location: Amsterdam
Post: #28
hmmm not sure what you mean with "list items"?
In the webgui in my browser, the progress of each torrent seems to be realtime...

@twotone8: simply use the IP address/host ip of your VM to access its webgui would be enough (make sure webgui is enabled). No need to modify this plugin.
Also, exporting your uTorrent to another machine can be done easily:
Start > Run > %appdata%\uTorrent
Back up rss.dat and settings.dat and restore it on any pc.. but I never completely read that guide so there must be more benefits.
find quote
bonecrusher8 Offline
Junior Member
Posts: 38
Joined: Apr 2010
Reputation: 0
Post: #29
zilexa Wrote:hmmm not sure what you mean with "list items"?
In the webgui in my browser, the progress of each torrent seems to be realtime...

@twotone8: simply use the IP address/host ip of your VM to access its webgui would be enough (make sure webgui is enabled). No need to modify this plugin.
Also, exporting your uTorrent to another machine can be done easily:
Start > Run > %appdata%\uTorrent
Back up rss.dat and settings.dat and restore it on any pc.. but I never completely read that guide so there must be more benefits.

Listitems are the text lines that appears in xbmc when you open a plugin or folder source
If you still don't understand i'll make a picture
find quote
twotone8 Offline
Senior Member
Posts: 130
Joined: Apr 2010
Reputation: 0
Post: #30
i have webui configured correctly for my virtual machine. as of now i can manage the torrents already downloading just fine. i attempted to download something from 'torrentz' as oppposed to 'the pirate bay' from the plugin, but i simply get an "error: script failed (the pirate bay)" message.

it sounds like it's very close to working though. perhaps i'll try an updated version of the plugin (thanx for fixing the 'label' thing by the way. or renaming it rather)

as of now i'm inputting my dynamic dns address into the plugin webui address

'myfullname'.dyndns.tv. port 8081. perhaps i'll attempt a 192.168.1.89:8081 configuration and see if that works any better. all the ports are setup and the webui works just fine.

edit: same error when using new version. shame. not sure what the issue is.

edit again: hrm. as it turns out, i can't even use 'torrentz' when the plugin is linked to my local machine either. i get the same error. so 'torrentz' access was failing for me even before i was trying to access my virtual machine.

i now have two copies of utorrent running. one for the local, and one for virtual. i'd prefer not to have utorrent running at all on my local htpc. i'm one step away from making this possible.


oh, and another advantage of running things from a virtual machine is that you have remote access to your library management from remote desktop. you can futz with settings or download new stuff even while you're watching stuff.
(This post was last modified: 2010-05-03 19:53 by twotone8.)
find quote
Post Reply