To fix urlopen error EOF occurred in violation of protocol error, we update python version to fix this error in this tutorial.
In this tutorial, we will propose a new way to fix this error: using shadowsocks to open a url and this error does not occur.
If we do not shadowsocks to access google.com in python 3.5, we will get this error.
OpenSSL 1.0.2k 26 Jan 2017 <urlopen error EOF occurred in violation of protocol (_ssl.c:719)>
Then we use shadowsocks as a proxy, then run application again.
We will get google.com content.
OpenSSL 1.0.2k 26 Jan 2017 <!doctype html><html itemscope="" itemtype="http://schema.org/SearchResultsPage"
So urlopen error EOF occurred in violation of protocol error does not occur.
To use shadowsocks to access blocked url in python, you can read this tutorial.