[RELEASE] SocksiPy (Script) - A SOCKS (or HTTP proxy) client module. v2.0.0
#1
Provides a socket-like interface that supports connections to any TCP service through the use of a SOCKS4, SOCKS5 or HTTP proxy. An easy way to do use proxies.

The source for the module is here: http://code.google.com/p/script-module-socksipy

The source for the code on which the module is based is here, along with examples of use: http://code.google.com/p/socksipy-branch

Note that my module is just a plain script module with the script from socksipy-branch dropped in without modification.

Usage
Taken from code where self.type, self.server, etc., have been initialised withg appropriate values, the following code makes all subsequent urllib2 requests go through the specified proxy:

Code:
socks.setdefaultproxy(self.type, self.server, self.port, self.dns, self.user, self.password)
socks.wrapmodule(urllib2)

Available from the offical XBMC repository: script.module.socksipy
People have been asking me for a Donate button, so if you want to buy me a drink > here it is <
Reply
#2
I'm interested in using this addon to route XBMC's streaming through a Socks5 proxy I have access to; however, I'm a little lost on how to set this up.

I've installed the script. I'm running Windows 7, so AppData\Roaming\XBMC\addons\script.module.socksipy is there, but I'm sure what to do next. I'm assuming I need to either edit one of the python scripts in that directory with my specific proxy info? Or I add a python script of my own?

I have little to no python skills so I appreciate any help you can provide.
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] SocksiPy (Script) - A SOCKS (or HTTP proxy) client module. v2.0.00