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.