{"id":22546609,"url":"https://github.com/prx/yahoo_content_analysis","last_synced_at":"2025-04-10T00:52:50.630Z","repository":{"id":7934115,"uuid":"9324154","full_name":"PRX/yahoo_content_analysis","owner":"PRX","description":"Ruby gem to access and parse Yahoo Content Analysis API","archived":false,"fork":false,"pushed_at":"2015-06-04T02:04:00.000Z","size":183,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-10T00:52:43.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PRX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-09T15:09:53.000Z","updated_at":"2017-08-30T22:04:26.000Z","dependencies_parsed_at":"2022-09-14T19:12:45.296Z","dependency_job_id":null,"html_url":"https://github.com/PRX/yahoo_content_analysis","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fyahoo_content_analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fyahoo_content_analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fyahoo_content_analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fyahoo_content_analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PRX","download_url":"https://codeload.github.com/PRX/yahoo_content_analysis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137995,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T15:08:21.145Z","updated_at":"2025-04-10T00:52:50.609Z","avatar_url":"https://github.com/PRX.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YahooContentAnalysis\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n[![Build Status](https://travis-ci.org/PRX/yahoo_content_analysis.svg?branch=master)](https://travis-ci.org/PRX/yahoo_content_analysis)\n[![Code Climate](https://codeclimate.com/github/PRX/yahoo_content_analysis/badges/gpa.svg)](https://codeclimate.com/github/PRX/yahoo_content_analysis)\n[![Coverage Status](https://coveralls.io/repos/PRX/yahoo_content_analysis/badge.svg?branch=master)](https://coveralls.io/r/PRX/yahoo_content_analysis)\n[![Dependency Status](https://gemnasium.com/PRX/yahoo_content_analysis.svg)](https://gemnasium.com/PRX/yahoo_content_analysis)\n\nUse the Yahoo! Content Analysis API to extract topics and entities.\n\nOAuth access is implemented, though not necessary (the docs imply higher limits if requests are signed).  This should be a useful example for those wanting to do 2-legged OAuth access to Yahoo APIs using Faraday and the OAuth Faraday Middleware.\n\n(I am not seeing the additional metadata nor related entities returned as the Yahoo docs claim they should, so YMMV.)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n```ruby\n    gem 'yahoo_content_analysis'\n```\n\nAnd then execute:\n```\n    $ bundle\n```\n\nOr install it yourself as:\n```\n    $ gem install yahoo_content_analysis\n```\n\n## Usage\n```ruby\nrequire 'yahoo_content_analysis'\n\nYahooContentAnalysis.configure{|y|\n  y.api_key = ENV['YAHOO_API_KEY']\n  y.api_secret = ENV['YAHOO_API_SECRET']\n}\n\n# you can query text\ntext = 'Italian sculptors and painters of the renaissance favored the Virgin Mary for inspiration.'\nr = YahooContentAnalysis::Client.new.analyze(text)\nnames = r.entities.map { |e| e.name }\n\n# you can also query a uri\nuri = 'http://www.npr.org/2015/06/03/411524156/in-search-of-the-red-cross-500-million-in-haiti-relief'\nr = YahooContentAnalysis::Client.new.analyze(uri)\nnames = r.entities.map { |e| e.name }\n```\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprx%2Fyahoo_content_analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprx%2Fyahoo_content_analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprx%2Fyahoo_content_analysis/lists"}