Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The bridge configuration does not take effect #178

Open
yafeng-Soong opened this issue Oct 23, 2022 · 0 comments
Open

The bridge configuration does not take effect #178

yafeng-Soong opened this issue Oct 23, 2022 · 0 comments

Comments

@yafeng-Soong
Copy link

When I passed ‘obfs4’ to the 'default_bridge_type' property of the TorBrowserDriver function, the browser was still directly connected to the Tor network. Do I need any special configuration to launch TorBrowserDriver with bridge?
Here is my code:

tor_process = launch_tbb_tor_with_stem(tbb_path=tbb_dir, torrc=torrc_dict)
with TorBrowserDriver(tbb_dir, tor_cfg=cm.USE_STEM, default_bridge_type='obfs4', pref_dict=ffpref, tbb_logfile_path='/dev/null') as driver:
        driver.load_url("https://check.torproject.org")
        print(driver.find_element_by("h1.on").text)
        print(driver.find_element_by(".content > p").text)
tor_process.kill()

I have tried both versions 11.0.14 and 11.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant