python wget1 wget wget class ][ robots.txt 받아오기 1) subprocess 버전 # -*- coding: utf-8 -*- # # write by kyoung chip , jang # # python 3.6 # pip list # import subprocess class CWget : def __init__( self ) : pass def getFile( self, location , url ) : proc = subprocess.Popen( ['wget', '-O',location, url], stdout = subprocess.PIPE ) out,err = proc.communicate() print ( ( "output = %s \nerror = %s") % ( out , err ) ) if.. 2017. 10. 6. 이전 1 다음