Implement Shadowsocks to Fix urlopen error EOF occurred in violation of protocol (_ssl.c:719) Error- Python Tutorial

By | August 28, 2019

To fix urlopen error EOF occurred in violation of protocol error, we update python version to fix this error in this tutorial.

Fix urlopen error EOF occurred in violation of protocol (_ssl.c:719) Error – Python Web Crawler 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.

A Simple Guide to Python Use Shadowsocks to Open Blocked URL – Python Web Crawler Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *