我需要在Rails應用程序上與Google Images API交談。有沒有Ruby的寶石來做到這一點?我發現了一個使用棄用API的老寶石。是否有使用Google Images API的Ruby gem?
6
A
回答
5
有一個名爲google_custom_search_api
使用較新的谷歌定製搜索API的寶石: https://github.com/wiseleyb/google_custom_search_api
您可以通過爲searchType
參數指定image
限制這種圖像搜索,就像這樣:
results = GoogleCustomSearchApi.search("poker", {"searchType" => "image"})
1
還有另一個寶石叫image_suckr - https://github.com/maurimiranda/image_suckr你也可以直接在谷歌圖片搜索API
suckr = ImageSuckr :: GoogleSuckr.new
suckr.get_image_url({ 「Q」=> 「汽車」})
相關問題
- 1. 使用Ruby JSON解析Google Places API Gem
- 2. Google images api
- 3. 是否有用於使用JSON-API格式的RESTful json api的gem | Ruby on Rails
- 4. 使用google-api-ruby-client gem有redirect_uri_mismatch錯誤
- 5. Rails 3.1的gmaps4rails gem是否允許使用Google Maps API密鑰?
- 6. 是否有解壓縮CSS的Ruby Gem?
- 7. 是否有相當於Node.js(雲存儲API)的ruby Fog Gem?
- 8. Geocoder gem是否可以使用Google API密鑰?
- 9. 在Windows上是否有任何使用LDAP v3的ruby gem/plugin?
- 10. 使用OAuth2 gem和Ruby嘗試對Google Groups API進行PUT
- 11. Twitter API - Ruby Twitter Gem
- 12. Ruby on Rails的Jira API gem?
- 13. 使用Ruby,「gem install」是否使用「--include-dependencies」...只是文檔有點過時?
- 14. Google Search API ruby
- 15. 是否有可用的Google Transit API?
- 16. 是否有Google外賣API?
- 17. Google+是否有公共API?
- 18. Google News autosuggest是否有api?
- 19. Google Vault產品是否有Google API?
- 20. 是否有現有的Google+ API?
- 21. Google控制檯中是否有所有啓用的API的API?
- 22. 使用Ruby Gem DBI
- 23. bigbluebutton-api-ruby(1.2.0)gem是否與BigBlueButton 0.81兼容?
- 24. Rails 3.2 Active_presenter rubygem - 是否死了
- 25. ACTION_GET_CONTENT to Google Images
- 26. Mapkit是否使用Google Maps API V3?
- 27. 是否有使用ColdFusion的Google Drive API的示例或支持?
- 28. 使用Google Images API動態縮小圖像,但不要放大
- 29. 是否有Google Plus Collections的API?
- 30. 是否有Google App搜索的REST API?
這是您發現的寶石:http://rubygems.org/寶石/ google_image_api – ScottJShea 2012-02-20 11:11:37
是的,就是那個。 – Goles 2012-02-20 12:58:28