2
需要使用隨機userAgent。我的代碼是:Selenium使用隨機userAgent(python)
#!/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()