Change/Edit the proxy settings on windows using python -
Change/Edit the proxy settings on windows using python -
i'am trying edit/configure proxy server using python on windows using below code. error. need help !!
import winreg internet_settings = winreg.openkey(winreg.hkey_current_user, r'software\microsoft\windows\currentversion\internet settings', 0, winreg.key_all_access) def set_key(name, value): _, reg_type = winreg.queryvalueex(internet_settings, name) winreg.setvalueex(internet_settings, name, 0, reg_type, value) set_key('proxyenable', 1) set_key('proxyserver', u'192.168.0.5:3128')
windows
Comments
Post a Comment