dimanche 27 octobre 2019

selenium random user agent realistic combination? [duplicate]

This question already has an answer here:

how can i use realistic user agents random, i wanna set a list of user agents which python can use random?

ua = UserAgent(cache=False, use_cache_server=False)
userAgent = ua.random
print(userAgent)
options.add_argument(f'user-agent={userAgent}')
browser = webdriver.Chrome(chrome_options=options)

my problem with this python make random user agents but with unrealistic system combinations

i use python on windows 64 bit

thats one of these useragent my script make.

Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36




Aucun commentaire:

Enregistrer un commentaire