Tell me how to use twill with socks-proxy (tor) in Python
I just tried to search and found this fork (which was specially created to support the twill socks proxy).
Alternatively, try Selenium (you can even headless version). Since it does not emulate a browser, but works in it, you (in theory) will have access to all browser functions, including working through
socks , JS support.