Exemple #1
0
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"))
Exemple #2
0
def useragent():
    agents = data.getAgent()

    return actions.randomFromList(agents.split("\n"))
Exemple #3
0
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"))
Exemple #4
0
def useragent():
    return randomFromList(data.getAgent().split("\n"))