|
@ -22,10 +22,10 @@ class YouTubeUtil: |
|
|
# AIzaSyDjPkCgDQ9Tv_xcChjY2E6GpJ6IzngnD5I |
|
|
# AIzaSyDjPkCgDQ9Tv_xcChjY2E6GpJ6IzngnD5I |
|
|
# AIzaSyAxIycOdQYGB5kWhwe3B-kJAYRo7wOnp8o |
|
|
# AIzaSyAxIycOdQYGB5kWhwe3B-kJAYRo7wOnp8o |
|
|
apiKeys = [ |
|
|
apiKeys = [ |
|
|
# "AIzaSyARaW3mqO9szQiHgWZR4el0HWvdyheSHBc", |
|
|
"AIzaSyARaW3mqO9szQiHgWZR4el0HWvdyheSHBc", |
|
|
# "AIzaSyChPXesnVx6fweon_BckhR6UiJWvi5Ma4s" |
|
|
"AIzaSyChPXesnVx6fweon_BckhR6UiJWvi5Ma4s" |
|
|
|
|
|
|
|
|
"AIzaSyCTBSbq0YjyxTtjmNsnDyKAwHamlv_ST-s" |
|
|
# "AIzaSyCTBSbq0YjyxTtjmNsnDyKAwHamlv_ST-s" |
|
|
# "AIzaSyAESnwtbTIBtU707iZowtQkmAo-qKuEOcY" |
|
|
# "AIzaSyAESnwtbTIBtU707iZowtQkmAo-qKuEOcY" |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -38,12 +38,12 @@ class YouTubeUtil: |
|
|
# 获取youtube对象 |
|
|
# 获取youtube对象 |
|
|
def getYoutube(): |
|
|
def getYoutube(): |
|
|
# 本地测试使用代码 |
|
|
# 本地测试使用代码 |
|
|
proxy_info = httplib2.ProxyInfo( |
|
|
# proxy_info = httplib2.ProxyInfo( |
|
|
proxy_type=httplib2.socks.PROXY_TYPE_HTTP, proxy_host="127.0.0.1", proxy_port=7890) |
|
|
# proxy_type=httplib2.socks.PROXY_TYPE_HTTP, proxy_host="127.0.0.1", proxy_port=7890) |
|
|
http = httplib2.Http(timeout=10, proxy_info=proxy_info, |
|
|
# http = httplib2.Http(timeout=10, proxy_info=proxy_info, |
|
|
disable_ssl_certificate_validation=False) |
|
|
# disable_ssl_certificate_validation=False) |
|
|
# http = httplib2.Http( |
|
|
http = httplib2.Http( |
|
|
# timeout=10, disable_ssl_certificate_validation=False) |
|
|
timeout=10, disable_ssl_certificate_validation=False) |
|
|
api_service_name = "youtube" |
|
|
api_service_name = "youtube" |
|
|
api_version = "v3" |
|
|
api_version = "v3" |
|
|
# 获取apiKey |
|
|
# 获取apiKey |
|
|