So currently at startup my code randomly assigns a user agent from a large list; what I'm not sure how to do, is to reassign that choice at a certain function further down.
randomAgent = random.choice(user_agent_list)
headers = {'User-Agent': randomAgent}
This is currently what chooses randomly from the list of user-agents.
Aucun commentaire:
Enregistrer un commentaire