import urllib.request
import urllib.parse


values = {'q':'python programming tutorials'}

data = urllib.parse.urlencode(values)
url = 'https://www.google.com/search?'+data
#data = data.encode('utf-8')

req = urllib.request.Request(url)
resp = urllib.request.urlopen(req)
resp_data = resp.read()

print(resp_data)

49448e46234b3ed1790d5edd56d1da468e342dd8
<mask token>

<mask token>
print(resp_data)

<mask token>
values = {'q': 'python programming tutorials'}
data = urllib.parse.urlencode(values)
url = 'https://www.google.com/search?' + data
req = urllib.request.Request(url)
resp = urllib.request.urlopen(req)
resp_data = resp.read()
print(resp_data)

import urllib.request
import urllib.parse
values = {'q': 'python programming tutorials'}
data = urllib.parse.urlencode(values)
url = 'https://www.google.com/search?' + data
req = urllib.request.Request(url)
resp = urllib.request.urlopen(req)
resp_data = resp.read()
print(resp_data)

import urllib.request
import urllib.parse


values = {'q':'python programming tutorials'}

data = urllib.parse.urlencode(values)
url = 'https://www.google.com/search?'+data
#data = data.encode('utf-8')

req = urllib.request.Request(url)
resp = urllib.request.urlopen(req)
resp_data = resp.read()

print(resp_data)
