yahoo 相关问题

不要使用此标签。您可能正在寻找[yahoo-api]或其他与Yahoo相关的标签。

从雅虎获取口语

如何使用YQL获取一个国家的口语? 我的方法是: 从 geo.countries 中选择 lang,其中 name ="Italy" 但我总是以英语作为语言: { “询问”: { “计数”:1, ”

回答 1 投票 0

Selenium Python - 我正在寻找的元素无法找到,即使它存在于雅虎财经中

我正在参与一个学校项目,我需要从雅虎财经网站获取某些股票的分析师价格目标估计(这是强制性的)。 当我尝试用美丽的

回答 1 投票 0

雅虎财经 API 用于获取前一天的信息

我想知道是否有人知道如何使用雅虎财经 API 获取前一天的股票信息?我正在使用 Javascript 和 axios 从 React 应用程序进行 api 调用: ''' axios.get('h...

回答 1 投票 0

雅虎问答 API 无法正常工作

我找到了一个我想实现的 PHP API 示例,但它似乎不起作用。 我找到了一个我想实现的 PHP API 示例,但它似乎不起作用。 <?php /** * @package Yahoo Answer * @author The HungryCoder * @link http://hungrycoder.xenexbd.com/?p=953 * @version 1.0 * @license GPL, This class does not come with any expressed or implied warranties! Use at your own risks! */ class yahooAnswer{ var $appID; var $searchQuestionURL = 'http://answers.yahooapis.com/AnswersService/V1/questionSearch?'; var $getQuestionURL = 'http://answers.yahooapis.com/AnswersService/V1/getQuestion?'; private $numResults = 10; private $numStart = 0; function __construct($appid) { $this->appID=$appid; } function set_numResults($num_results){ $this->numResults = $num_results; } /** * Search for questions for the given keywords. Returned results can be associative array or XML * @param <string> $kewyord * @return <string> Returns the results set either in XML format or associative array. */ function search_questions($params){ if(!is_array($params)){ throw new Exception('The parameters must be an array!'); } $defaults = array( 'search_in' => '', 'category_name' => '', 'date_range' => '', //7, 7-30, 30-60, 60-90, more90 'sort' => 'relevance', //relevance, date_desc, date_asc 'type' => 'all', 'output' => 'php', 'results' => $this->numResults, 'start' => $this->numStart, 'region' => 'us', 'appid' => $this->appID, ); $params = array_merge($defaults,$params); if(!$params['appid']){ throw new Exception('APP ID is empty!', 404); } if(!$params['query']) { throw new Exception('Query is not set!', '404'); } $req_params = $this->array2query_string($params); $url = $this->searchQuestionURL.$req_params; $results = $this->make_call($url); if($params['output']=='php'){ $results = unserialize($results); return $results['Questions']; } return $results; } /** * Get all answers of a given question ID * @param <array> $params keys are: question_id, output, appid * @return <string> Returns all answers in expected format. default format is php array */ function get_question($params){ if(!is_array($params)){ throw new Exception('The parameter must be an array!'); } $defaults = array( 'question_id' => '', 'output' => 'php', 'appid' => $this->appID, ); $params = array_merge($defaults,$params); if(!$params['appid']){ throw new Exception('APP ID is empty!', 404); } if(!$params['question_id']) { throw new Exception('Question ID is not set!', '404'); } $req_params = $this->array2query_string($params); $url = $this->getQuestionURL.$req_params; $results = $this->make_call($url); if($params['output']=='php'){ $results = unserialize($results); return $results['Questions'][0]; } return $results; } protected function make_call($url){ if(function_exists('curl_init')){ $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_TIMEOUT,60); $result = curl_exec($ch); curl_close($ch); return $result; } else if(function_exists('file_get_contents')) { return file_get_contents($url); } else { throw new Exception('No method available to contact remote server! We must need cURL or file_get_contents()!', '500'); } } protected function array2query_string($array){ if(!is_array($array)) throw new Exception('Parameter must be an array', '500'); $params =''; foreach($array as $key=>$val){ $params .= "$key=$val&"; } return $params; } } $appid = "myId"; $params = array( 'query' => 'keyword', //enter your keyword here. this will be searched on yahoo answer 'results' => 10, //number of questions it should return 'type' => 'resolved', //only resolved questiosn will be returned. other values can be all, open, undecided 'output' => 'php', //result will be PHP array. Other values can be xml, json, rss ); $query = 'yoga'; //enter your keyword here to search for $yn = new yahooAnswer($appid); //search questions try{ $questions = $yn->search_questions($params); } catch (Exception $e){ echo ($e->getMessage()); } ?> 但是当我删除该 $appid 定义时,我收到一条消息,APPID 为空,当我输入 $appid 的 appid 时,我只是得到一个空白页面,但我确实有一个 appid,并且我直接从雅虎。 关于如何让它发挥作用有什么建议吗? 各种版本的API已被废弃,并且已停止提供官方支持。 最新工作版本是v8。 示例: https://query2.finance.yahoo.com/v8/finance/chart/aapl

回答 1 投票 0

Python imaplib:无论凭据是否正确,雅虎帐户身份验证都会失败

我正在使用 python 的 imaplib 来获取和操作邮件。 Gmail 帐户一切正常。但是,当我尝试使用相同的帐户登录雅虎帐户时,身份验证失败,并显示以下信息...

回答 1 投票 0

英国雅虎天气 API [已关闭]

我正在尝试为iPhone制作一个应用程序,它可以告诉英国不同地点的天气,但我找不到相应的API,所以有人可以帮我找到Yahoo API吗?

回答 1 投票 0

雅虎幻想体育API

还有人在使用 Yahoo Fantasy Sports API 吗?我有一个去年运行的应用程序,根本没有更改我的代码,现在当我尝试运行它时,它返回 500 内部错误。 我曾经

回答 2 投票 0

如何获取几个证券交易所的股息百分比(公式有效,但不适用于所有交易所)

下面的公式有效,但并不总是有效。它看起来取决于其交易的证券交易所。 =IMPORTXML(CONCATENATE("https://finance.yahoo.com/quote/",index(A2)),"...

回答 1 投票 0

从雅虎财经获取股票图表

我正在使用雅虎财经获取股票报价。现在我想获取一家特定公司的图表。是否可以使用 yahoo 来做到这一点?如果没有,有人可以通过...提供一些其他API吗?

回答 2 投票 0

如何在 Chrome 中注册 Yahoo Mail `mailto` 协议处理程序?

我如何注册 Yahoo Mail Web 客户端的 mailto: 协议处理程序? 我知道要运行的 javascript 应该是这样的: navigator.registerProtocolHandler('mailto', 'https://compose.mail.

回答 1 投票 0

Pandas DataReader 类型错误

所以本质上我一直在尝试使用DataReader功能但无济于事。 我已在代码中导入了所有相关内容,但每次使用 DataReader 函数时,都会收到 TypeError: ...

回答 1 投票 0

Java Mail:无法通过 Yahoo 发送电子邮件

请看下面的代码。 包裹电子邮件; 导入 java.awt.*; 导入 java.awt.event.*; 导入 javax.mail.*; 导入 javax.mail.internet.*; 导入java.util.Properties; 公开课

回答 6 投票 0

我需要使用 python selenium 单击 yahoo 登录页面上的复选框 recaptcha

我正在努力使用Python和Selenium登录雅虎网络邮件。 我创建了一个代码并在 Google recaptcha 演示上进行了测试,它可以工作,但在雅虎邮件上尝试时出现错误。 导入

回答 1 投票 0

间歇性 Yahoo Oauth2 invalid_redirect_uri

我正在努力允许用户使用雅虎登录我的网站。我在使用 Yahoo Oauth2 时遇到间歇性问题。我将生成请求授权码的 url,它将到达...

回答 2 投票 0

你如何缩进代码不能在问题中发布我的脚本

获取错误信息 您的帖子似乎包含格式不正确的代码。请使用代码工具栏按钮或 CTRL+K 键盘快捷键将所有代码缩进 4 个空格。更多

回答 0 投票 0

TypeError:string indices must be integers in streamlit

这是我的代码的响应 这是守则 请帮我解决这个问题。

回答 0 投票 0

关于日期格式的 yfinance 代码的 Python ValueError

`"""代码:python 将 numpy 导入为 np 将熊猫导入为 pd 将 matplotlib.pyplot 导入为 plt #import pandas_datareader 作为数据 从 pandas_datareader 将数据导入为 pdr 来自 keras.models

回答 0 投票 0

Yahooquery 是否包括类似于 yfinance 的移动平均数据?

我正在评估 yahooquery 作为 python 中 yfinance 的替代品,以提取大量代码的各种数据。我已经使用 yfinance 有一段时间了,但它需要一段时间才能运行。

回答 0 投票 0

yahoo邮件客户端删除了锚标签中的href值。

下面是邮件中发送的邮件模板片段代码。

回答 1 投票 1

雅虎金融历史收盘价对谷歌表的回报纳为收盘晚于100天。

我尝试从yahoo finance打印历史调整后的收盘价到google sheets。 =ImportXML("https:/sg.finance.yahoo.comquote"&B57& "history?p="&B57,"/tbodytr[21]td[6]") 细胞...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.