How to uri encode a large text file with python 3.4?
Question: I have a large text file that i want to be uri argument encoded. I researched
a bit and came up with this:

    
    
    import urllib
    f=open('text.txt','r').read()
    n= open('encodeTest.txt','w')
    new=urllib.quote_plus(f) 
    n.write(new)
    

I get this error whenever I run it:

    
    
    AttributeError: 'module' object has no attribute 'quote_plus'
    


Answer: You want
[urllib.parse.unquote_plus](https://docs.python.org/3.1/library/urllib.parse.html#urllib.parse.quote_plus).
But even this wouldn't work if you're encoding a large file since the [max URL
length](https://stackoverflow.com/questions/417142/what-is-the-maximum-length-
of-a-url-in-different-browsers) is ~2000 chars

