Python code to grab the HTML of Google’s Home Page

Photo by Mitchell Luo on Unsplash
import urllib.request# for http requestsweburl = urllib.request.urlopen(“http://www.google.com") # gives a web response object as it’s returned value

We can grab the data in html format quite easily for google.com and save it in a variable named “Data” as…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Graham Waters

Graham Waters

I’m a Data-Driven Dreamer, a scientific art lover, a story-teller, and the proud owner of a Teacup Yorkie. Follow me on Substack for even more content!