Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 无法使用google VM使用urllib发出请求_Python 3.x_Google Cloud Platform_Urllib - Fatal编程技术网

Python 3.x 无法使用google VM使用urllib发出请求

Python 3.x 无法使用google VM使用urllib发出请求,python-3.x,google-cloud-platform,urllib,Python 3.x,Google Cloud Platform,Urllib,我正在尝试使用google VM实例从该“”网站中抓取数据,我得到了请求超时错误对于该特定网站,我在我的系统中使用了相同的代码。它工作得非常好。任何人都可以帮我,在google cloud中启动VM实例时,防火墙设置中允许HTTP和https import urllib.request as urllib2 master_link='https://www.societe.com' urllib2.urlopen(master_link) 我也面临着AWS的同样问题

我正在尝试使用google VM实例从该“”网站中抓取数据,我得到了请求超时错误对于该特定网站,我在我的系统中使用了相同的代码。它工作得非常好。任何人都可以帮我,在google cloud中启动VM实例时,防火墙设置中允许HTTP和https

import urllib.request as urllib2
master_link='https://www.societe.com'
urllib2.urlopen(master_link)

我也面临着AWS的同样问题