Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

selenium chromeoptions user agent

from selenium import webdriver

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--user-agent="Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 640 XL LTE) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Mobile Safari/537.36 Edge/12.10166"')
driver = webdriver.Chrome(chrome_options=chrome_options)
Comment

PREVIOUS NEXT
Code Example
Python :: replace values of pandas column 
Python :: uniform distribution python example 
Python :: How to find xpath by contained text 
Python :: python - row slice dataframe by number of rows 
Python :: read json from api python 
Python :: remove rows from pandas dataframe that have text 
Python :: python binary search algorithm 
Python :: multirow np.rand.randint 
Python :: set pixel pygame 
Python :: how to create a countdown timer using python 
Python :: pandas subtract days from date 
Python :: 2 for loops at the same time in Python 
Python :: convert string to class name python 
Python :: python datetime weekday 
Python :: how to add element at first position in array python 
Python :: python do something before exit 
Python :: html to docx python 
Python :: save and load a machine learning model using Pickle 
Python :: Python make directories recursively 
Python :: check tf verison 
Python :: python run shell command 
Python :: Configuring Django to Send Emails with mailgun 
Python :: python set intersection 
Python :: python join with int 
Python :: cv2.threshold binary 
Python :: opencv export image 
Python :: python instagram downloader 
Python :: how to make a numpy array 
Python :: pandas delete spaces 
Python :: pandas column by index 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =