import
httplib
import threading
def GetPage(UsrName):
conn = httplib.HTTPConnection( " hi.baidu.com " )
conn.request( " GET " , " / " + UsrName)
# r1 = conn.getresponse()
# print r1.status, r1.reason
name = raw_input( " Please Input Your UserName : " )
time = raw_input( " Please input times you want: " )
times = int(time, 10 )
for n in range(times):
# t = threading.Timer(2,GetPage)
# t.start()
GetPage(name)
import threading
def GetPage(UsrName):
conn = httplib.HTTPConnection( " hi.baidu.com " )
conn.request( " GET " , " / " + UsrName)
# r1 = conn.getresponse()
# print r1.status, r1.reason
name = raw_input( " Please Input Your UserName : " )
time = raw_input( " Please input times you want: " )
times = int(time, 10 )
for n in range(times):
# t = threading.Timer(2,GetPage)
# t.start()
GetPage(name)