Skip to content

Instantly share code, notes, and snippets.

@jeromew21
Last active August 31, 2021 20:06
Show Gist options
  • Save jeromew21/99cb820b4bedcc3d1aa6a3e71defb92c to your computer and use it in GitHub Desktop.
Save jeromew21/99cb820b4bedcc3d1aa6a3e71defb92c to your computer and use it in GitHub Desktop.
spoof a web browser with Python
r = requests.get(url, headers={
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment