Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #...
- # Choose a random User Agent
- random_user_agent = random.choice(user_agents)
- # Use wget with the random User Agent
- url = "https://httpbin.io/user-agent" # Replace with your URL
- command = f'wget --user-agent="{random_user_agent}" {url}'
- subprocess.call(command, shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement