# 设置浏览器为iphone模式打开
mobile_emulation = {'deviceName':'iPhone 6'}
options = webdriver.ChromeOptions()
options.add_experimental_option("mobileEmulation", mobile_emulation)
browser = webdriver.Chrome(chrome_options=options)
browser.get('https://test-jdread.jd.com/static/read/dist/index.html?ebookId=%s&name=%s'%(bookid,bookname))
网友评论