简体   繁体   中英

Using a Proxy with Google Analytics GA API Version 4 Python

Trying to use

HelloAnalytics.py 

GA API script from:

https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/installed-py

Cannot get it to work, I have a Proxy here. How to get it to work with a proxy?

This is a little lite on description, but in general the below is one approach to manually set proxy at the global namespace level.

import os
os.environ['HTTPS_PROXY'] = "https://login:password@ip_address:port"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM