Browse Source

删除部分测试代码

master
appolli 5 months ago
parent
commit
c6310eca92
  1. 18
      common/YoutubeUtils.py

18
common/YoutubeUtils.py

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

Loading…
Cancel
Save