Python:使用代理服务器访问Google云存储

时间:2018-06-26 09:01:17

标签: python proxy google-cloud-platform google-cloud-storage

我正在尝试使用代理服务器(使用Unix选项尝试访问Google云存储和bigquery的另一种方式):

export https_proxy=http://myproxy-server.com:myport

然后触发Python代码

我还指定了使用Python进行编码,例如:

import os 
proxy = 'http://myproxy-server.com:myport'
os.environ['https_proxy'] = proxy

#[Further code goes here]

以上两个选项都可以正常工作,但是,我试图通过通过Python代码指定/设置代理来找到更多使用代理服务器访问Google云的选项。

我们可以使用其他任何选项吗?

0 个答案:

没有答案