try this:<br><br>run this in your terminal before you hit nltk.download(). <br>Don't forget to set username, password and proxy info for your own system.(in PROXY_INFO)<br><br>import urllib2<br><br>PROXY_INFO = {<br> 'user' : username,<br>
'pass' : password,<br> 'host' : proxy_server,<br> 'port' : proxy_port<br>}<br><br>proxy_support = urllib2.ProxyHandler({"http" : \<br> "http://%(user)s:%(pass)s@%(host)s:%(port)d" % PROXY_INFO})<br>
opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler)<br> <br>urllib2.install_opener(opener)<br><br>HTH<br><br><div class="gmail_quote">On Sat, May 1, 2010 at 6:58 PM, Adil Kaleem <span dir="ltr"><<a href="mailto:kaleem.adil@gmail.com">kaleem.adil@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi all<br>
I'm a masters student in NLP. I needed to download the Brown corpus.<br>
I'm unable to download from <a href="http://nltk.org" target="_blank">nltk.org</a> with the python CLI. My network<br>
connection is behind a proxy server so it's creating a problem. Since<br>
I don't know a bit of python, so unable to figure a way out. Can<br>
someone help me in this regard either how to solve my downloading<br>
problem or how to get Brown Corpus from some other link.<br>
Thanks in advance.<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Shashank Singh<br>Senior Undergraduate, Department of Computer Science and Engineering<br>Indian Institute of Technology Bombay<br><a href="mailto:shashank.sunny.singh@gmail.com">shashank.sunny.singh@gmail.com</a><br>
<a href="http://www.cse.iitb.ac.in/~shashanksingh">http://www.cse.iitb.ac.in/~shashanksingh</a><br>