【发布时间】:2018-01-16 08:43:11
【问题描述】:
我正在尝试使用 python selenium 实现移动 chrome 爬虫。
我想在隐身模式下执行移动 chrome。 所以,我尝试如下。
options = webdriver.ChromeOptions()
## run chrome on incognito mode not to use web cache.
options.add_argument("--incognito")
options.add_experimental_option('androidPackage','com.android.chrome')
driver = webdriver.Chrome(chrome_options=options)
但是,移动 chrome 是在默认模式下执行的,而不是隐身模式。 请帮帮我。
【问题讨论】:
-
你真的能使用上面的代码在你的手机上启动 chrome 吗?
-
@EugeneS 是的。我引用了sites.google.com/a/chromium.org/chromedriver/getting-started/…
标签: python google-chrome selenium mobile