Ejemplo n.º 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"))
Ejemplo n.º 2
0
def useragent():
    agents = data.getAgent()

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