Last active
February 10, 2019 12:15
-
-
Save SunDi3yansyah/3102db2486cfc78045a6 to your computer and use it in GitHub Desktop.
Download Html Dari Url Menggunakan Python
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
def downloadUrl(url) | |
opener = urllib.request.FancyURLopener({}) | |
f = opener.open(url) | |
return f.read() | |
content = downloadUrl("https://google.com") | |
print(content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment