urllib can't run

import request from urllib if __name__ == "__main__": response =request.urlopen("http://www.baidu.com") html = response.read() print(html)

4/17/2018 10:33:36 AM


2 Answers

New Answer


what should be the output ??? is this what u wanted Run again if it shows time limit exceed i have made some changes 👇 https://code.sololearn.com/cdPLa1RYbC9E/?ref=app


Greetings! Your import statement is wrong, the syntax the following: from module import something