Skip to content

Instantly share code, notes, and snippets.

@SunDi3yansyah
Last active February 10, 2019 12:15
Show Gist options
  • Save SunDi3yansyah/3102db2486cfc78045a6 to your computer and use it in GitHub Desktop.
Save SunDi3yansyah/3102db2486cfc78045a6 to your computer and use it in GitHub Desktop.
Download Html Dari Url Menggunakan Python
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