splinter-examples
splinter-examples copied to clipboard
Disabling images with splinter firefox browser
Could you add code for disabling images with splinter firefox browser?
I am doing this:
browser = Browser('firefox', profile_preferences=proxy_settings) path = #Given the path browser.visit(path) soup = BeautifulSoup(browser.html, 'html.parser')
For faster performance, I want to load pages by disabling the images. I tried editing the "permissions.default.image" parameter to 2 in "about:config" of firefox, but it resets everytime firefox is under remote control.
TL;DR: How do I pass "permissions.default.image" in splinter.browser.visit() request?
Thanks
Any updates yet?