雅虎认证
我正在使用新的 yahoo API。我想使用以下地址废弃一些虚拟数据
当我运行此命令时,我收到身份验证错误(需要登录雅虎)显然对于我在互联网上闲逛来说没问题。不过我想从 ruby 脚本中调用它。我有什么想法可以进行身份验证吗?我似乎只能找到一些网络版本。
I'm playing around with the new yahoo API. I'd like to scrap some dummy data using the following address
When I run this I get an authenticaion error (Need to be logged into Yahoo) This is fine obviously for me messing around on the internet. However I'd like to call this from a ruby script. Any ideas how I go about authenticating? I can only seem to find some web enabled version.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
公共函数 ScanColumns(SheetName As String, thisMany As Double, ShowWhat As String)
Public Function ScanColumns(SheetName As String, thisMany As Double, ShowWhat As String)
您可以尝试使用 Mechanize gem 来实现此目的。我已将其用于其他经过身份验证的服务
在过去。
You might try the Mechanize gem for this. I've used it for other authenticated services
in the past.
我还推荐 httparty ——用它映射 JSON 服务非常容易。试试这个:
I'd also recomment httparty -- It is ridiculously easy to map JSON services with this. Try this:
您可以尝试使用
omniauth-yahoo
进行授权,但是发现不支持过期后获取新的token。You could try
omniauth-yahoo
for authorization, but it's seen didn't support get the new token after expired.