Advertisement
dereksir

Untitled

Sep 11th, 2023 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. #...
  2.  
  3. # Choose a random User Agent
  4. random_user_agent = random.choice(user_agents)
  5.  
  6. # Use wget with the random User Agent
  7. url = "https://httpbin.io/user-agent"  # Replace with your URL
  8. command = f'wget --user-agent="{random_user_agent}" {url}'
  9. subprocess.call(command, shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement