Last active
August 31, 2021 20:06
-
-
Save jeromew21/99cb820b4bedcc3d1aa6a3e71defb92c to your computer and use it in GitHub Desktop.
spoof a web browser with Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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