
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Ruby Yahoo Japan Web API ( Shopping,Auction,News supported )
Add this line to your application's Gemfile:
gem 'yahoo-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yahoo-api
require 'yahoo/api'
# configure
Yahoo::Api.configure do |options|
options[:appid] = 'your api id'
options[:affiliate_type] = "vc or yid"
options[:affiliate_id] = "your affiliate id"
end
# Item Search API v1
res = Yahoo::Api.get(Yahoo::Api::Shopping::ItemSearch,{:category_id => "13457"})
res.code # 200
res.message # "OK"
res["ResultSet"]["totalResultsReturned"].times do |i|
code = res["ResultSet"]["0"]["Result"]["#{i}"]["Code"]
...
end
or
res["ResultSet"]["0"]["Result"].each do |i,v|
next unless i =~ /\d+/
code = v["Code"]
...
end
See the examples directory for more usage.
# Yahoo Shopping Web API
Yahoo::Api::Shopping::ItemSearch # Item Search API v1
Yahoo::Api::Shopping::CategoryRanking # Category Ranking API v1
Yahoo::Api::Shopping::CategorySearch # Category Search API v1
Yahoo::Api::Shopping::ItemLookup # Item Lookup API v1
Yahoo::Api::Shopping::QueryRanking # Query Ranking API v1
Yahoo::Api::Shopping::ContentMatchItem # Content Match Item API v1
Yahoo::Api::Shopping::ContentMatchRanking # Content Match Ranking API v1
Yahoo::Api::Shopping::GetModule # Get Module API v1
Yahoo::Api::Shopping::EventSearch # Event Search API v1
Yahoo::Api::Shopping::ReviewSearch # Review Search API v1
# Yahoo Auction Web API
Yahoo::Api::Auction::CategoryTree # Category Tree API v2
Yahoo::Api::Auction::CategoryLeaf # Category Leaf API v2
Yahoo::Api::Auction::SellingList # Selling List API v2
Yahoo::Api::Auction::Search # Search API v2
Yahoo::Api::Auction::Item # Item API v2
Yahoo::Api::Auction::BidHistory # Bid History API v1
Yahoo::Api::Auction::BidHistoryDetail # Bid History Detail API v1
Yahoo::Api::Auction::ShowQAndA # Show Q & A API v1
Yahoo::Api::Auction::ShowRating # Show Rating API v1
# Yahoo News Web API
Yahoo::Api::News::Topics # Topics API v2
Refer to Shopping Web API documentation,Auction Web API documentation,News Web API documentation for more infomation.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that yahoo-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.