Sorry! My bad. I am using requests for too long.
There is not get method but urlopen instead.
urllib.request.urlopen('https://google.com').getcode()
There is not get method but urlopen instead.
urllib.request.urlopen('https://google.com').getcode()