首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用php分析爬行Datumbox时的错误

用php分析爬行Datumbox时的错误
EN

Stack Overflow用户
提问于 2014-10-09 01:53:03
回答 1查看 200关注 0票数 1

我正在尝试使用php进行Datumbox Twitter情感分析,因为我在这里使用了代码

http://blog.datumbox.com/how-to-build-your-own-twitter-sentiment-analysis-tool/

但是它显示了这样的错误,甚至我都用config.php填充了我的键

代码语言:javascript
复制
Fatal error: Uncaught exception 'TwitterApiException' with message 'Operation timed out after 5015 milliseconds with 0 bytes received' in C:\xampp\htdocs\test\twitter\lib\twitter-client.php:423 Stack trace: #0 C:\xampp\htdocs\test\twitter\lib\twitter-client.php(349): TwitterApiClient::http_request('https://api.twi...', Array) #1 C:\xampp\htdocs\test\twitter\lib\twitter-client.php(239): TwitterApiClient->rest_request('search/tweets', Array, 'GET') #2 C:\xampp\htdocs\test\twitter\lib\TwitterSentimentAnalysis.php(56): TwitterApiClient->call('search/tweets', Array, 'GET') #3 C:\xampp\htdocs\test\twitter\lib\TwitterSentimentAnalysis.php(40): TwitterSentimentAnalysis->getTweets(Array) #4 C:\xampp\htdocs\test\twitter\index.php(31): TwitterSentimentAnalysis->sentimentAnalysis(Array) #5 {main} thrown in C:\xampp\htdocs\test\twitter\lib\twitter-client.php on line 423

我这边有什么问题吗?还是代码上有问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-18 06:57:00

在我看来,Twitter客户端似乎无法访问证书。确保它位于正确的位置,并确保它具有读取权限。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26269126

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档