0
OSErrorの:[errnoを8] Execの形式エラーbrowsermobproxy
from browsermobproxy import Server
server = Server("path/to/browsermob-proxy")
server.start()
proxy = server.create_proxy()
from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile.set_proxy(proxy.selenium_proxy())
driver = webdriver.Firefox(firefox_profile=profile)
proxy.new_har("google")
driver.get("http://www.google.co.uk")
proxy.har # returns a HAR JSON blob
server.stop()
driver.quit()
を使用してサーバを起動しようと、私はbroswermobproxy、セレンを使用したHARファイルをエクスポートしようとしているhttps://browsermob-proxy-py.readthedocs.io/en/stable/index.html
から上記のコードを取りました。
ソフトウェア仕様:
OS:Ubuntuの16.04 スクリプト言語:Pythonの(2.7.8) 自動Webブラウザ:セレン(3.5.0) BrowserMobプロキシ:0.8.0および2.1.4(インストール済みピップからhttps://bmp.lightbody.net/)
私はシバンラインを追加しようとしましたが、助けになりませんでした。なぜ私はエラーが出ているのか分かりません。どんな助けもありがとう。ありがとう。