Created
May 31, 2020 11:57
-
-
Save rvth/a9f29ea34efde754cb729b41503a7fa8 to your computer and use it in GitHub Desktop.
This file contains 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
# Define URL | |
url = 'https://www.example.co.uk' | |
# API request url | |
result = urllib.request.urlopen('https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url={}/&strategy=mobile'\ | |
.format(url)).read().decode('UTF-8') | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment