Closed harry0987 closed 4 years ago
Sorry for the late response. This means tor
is not listening on port 9050. You can either install it (e.g. by apt install tor
) or follow this example to start tor
via stem
yourself.
I updated the README to clarify requirements wrt. to system tor
I installed tbselenium on linux using pip but when i am getting following port error: File "/home/user/.local/lib/python2.7/site-packages/tbselenium/tbdriver.py", line 88, in init_ports % socks_port) TBDriverPortError: SOCKS port 9050 is not listening
I am using tbslelenium with below code:
import unittest from time import sleep from tbselenium.tbdriver import TorBrowserDriver
class TestSite(unittest.TestCase): def setUp(self):
Point the path to the tor-browser_en-US directory in your system
if name == 'main': unittest.main() ~
Please suggest.