The most convenient way might be the insatll firefox extension to open the tcp service, then you can exchange information with firefox.
mozrepl can configure the telnet service, you can call the js-like command to get the information.
With telnetscript (http://code.activestate.com/recipes/152043/) you can write:
import telnetscript script = """rve w content.location.href; ru repl> w repl.quit() cl """ conn = telnetscript.telnetscript( '127.0.0.1', {}, 4242 ) ret = conn.RunScript( script.split( '\n' )).split( '\n' ) print ret[-2][6:]
weir009
source share