def random_user_agent(): """ Generate agent of client randomly :return: string = agent value (PC) """ # TODO better useragent with library (or create my own - takes time) from cores.actions import list_choose_randomly return list_choose_randomly(data.getAgent().split("\n"))
def useragent(): agents = data.getAgent() return actions.randomFromList(agents.split("\n"))
def useragent(): # Try random agent everytime it is called # TODO better useragent with library (or create my own - takes time) return randomFromList(data.getAgent().split("\n"))
def useragent(): return randomFromList(data.getAgent().split("\n"))