Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Amazon Product is a Nokogiri-backed Ruby wrapper to the [Amazon Product Advertising API] 2.
## Installation
Add to your Gemfile.
gem 'amazon_product'
## Usage
Set up a request.
require "amazon_product"
req = AmazonProduct["us"]
req.configure do |c|
c.key = AMAZON_KEY
c.secret = AMAZON_SECRET
c.tag = AMAZON_ASSOCIATE_TAG
end
Look up a product.
req << { :operation' => 'ItemLookup',
:item_id' => '0679753354' }
resp = request.get
[Or use a shorthand] 3.
resp = req.find('0679753354')
Consume the entire response.
resp.to_hash
Quickly drop down to a particular node.
resp['Item']
[Please see the project page] 4 for further detail.
Amazon Product defaults to the Net::HTTP library but can be configured to use Curb or EM-HTTP-Request.
Amazon Product descends from Sucker. While I still like the vacuum metaphor, the name felt tiring after a while.
FAQs
Unknown package
We found that amazon_product 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.