title: Use random userAgent for Selenium (python)
body: <p>Need use random userAgent. My code it is:</p>
  
  <pre><code>#!/usr/bin/python
  # Import selenium
  from selenium import webdriver
  
  # init Profile options for navigation
  fp = webdriver.FirefoxProfile()
  
  # Set userAgent
  fp.set_preference("general.useragent.override", "custom userAgent")
  fp.update_preferences()
  </code></pre>