<gh_stars>0
import urllib.request
import urllib.parse
headers={
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
}
parameters = {
    "wd":"<PASSWORD>",
}
hr = urllib.parse.urlencode(parameters)
print(hr)
request = urllib.request.Request(url='http://www.baidu.com/s?'+hr,method="GET")
response = urllib.request.urlopen(request)
print(response.url)
HTML=response.read().decode()
print(HTML)
with open("/home/suibian/Desktop/py/Scritest.txt",mode='w') as f:
    f.write(HTML)
import urllib.request
import urllib.parse
headers={
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
}
parameters = {
    "wd":"<PASSWORD>",
}
hr = urllib.parse.urlencode(parameters)
print(hr)
request = urllib.request.Request(url='http://www.baidu.com/s?'+hr,method="GET")
response = urllib.request.urlopen(request)
print(response.url)
HTML=response.read().decode()
print(HTML)
with open("/home/suibian/Desktop/py/Scritest.txt",mode='w') as f:
    f.write(HTML)