Fix Python urlopen error [Errno 0] Error – Python Tutorial

By | August 28, 2019

When using python to access a blocked site (https://www.google.com in china), you may get this error: urlopen error [Errno 0] Error. In this tutorial, we will introduce you how to fix this error.

To fix this error, you should be sure this url can be accessed.

So we apply shadowsocks as a proxy to access google.com, then this error disappeared.

To use shadowsocks in python to access url. You can read this tutorial.

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