그냥 개발자 블로그

Python webdriver chromedriver mobile emulater example 본문

프로그래밍팁/Python

Python webdriver chromedriver mobile emulater example

마음이파파 2019. 9. 2. 11:18
print("++++ start ++++")

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_argument('--user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1')
driver = webdriver.Chrome('/Users/home/Downloads/auction/chromedriver_mac',options=chrome_options)


driver.get("https://www.instagram.com/work6kr/")

 

 

copyright 2019. 워크식스

 

 

 

 

'프로그래밍팁 > Python' 카테고리의 다른 글

[Python] exe 파일 만들때 경로 문제 팁  (0) 2023.03.04