php - 谷歌金融 getprices URL 通过浏览器工作,但自 2018 年 8 月 3 日起无法工作
问题描述
谷歌金融 getprices URL 通过浏览器工作,但自 2018 年 8 月 3 日起无法工作任何解决方案为什么
我也在 PHP 中以编程方式检查过
<?php
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$URL = 'https://finance.google.com/finance/getprices?f=d,c,v,k,o,h,l&p=60&x=NSE&q=ITC&i=60;
$filecontent = file_get_contents( $URL , false, stream_context_create($arrContextOptions));
print_r($filecontent);
?>
一般来说,这会给我时间戳、打开、高、低、关闭、文本格式的交易量数据,但这现在不起作用。
解决方案
推荐阅读
- selenium - selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 80
- kubernetes - 由于同步 pod 错误,导致 1/4 pod 出现 CrashLoopBackOff 错误
- swift - 如何使 NSAlert 的 NSButton 裁剪文本?
- blazor-client-side - SHIFT + ALT + D 未在 Ubuntu 中打开 Blazor WebAssembly 调试器
- powershell - 无法在 VSCode 中使用 SharePoint PNP PowerShell
- python - Sklearn.linear_model import LinearRegression 不适用于数据系列,但适用于数据帧。为什么?
- linux - 适用于 Kubernetes 的 AWS 映像
- c# - PUN 更改仅影响本地玩家,不影响其他客户端
- python - 为什么我的 findall 回复 [] 并且有时会显示数据
- arrays - 将包含输入参数的数组传递给 Julia 中的函数