Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
For Japanese README_ja.md
This is a Gem for easy Amazon product search.
Before using it, you need to pass Amazon Associate review and get ACCESS_KEY etc. as preparation.
Amazon Product Advertising API 5.0 is supported.
This Gem is implemented using only the Ruby standard-attached library, so it does not depend on other Gems.
Ruby versions that have been tested by rbenv
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20]
ruby 3.0.0rc1 (2020-12-20 master 8680ae9cbd) [x86_64-darwin20]
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]
Add this line to your application's Gemfile:
gem 'paapi_mini'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install paapi_mini
require 'paapi_mini'
# The keyword argument to the search_items method can be used to refine the condition.
# Please refer to the official reference for the specifications of each argument.
# See Also https://webservices.amazon.com/paapi5/documentation/search-items.html
# Default Values.
# item_page: 1,
# min_price: 1,
# max_price: 100000,
# min_review_rating: 1,
# host: "webservices.amazon.co.jp",
# region: "us-west-2",
# market_place: "www.amazon.co.jp"
res = PaapiMini::search_items(ENV['ACCESS_KEY'], ENV['SECRET_KEY'], ENV['PARTNER_TAG'],
keywords: "Ruby", min_review_rating: 3)
# res is Net::HTTPResponse Object
# See Also https://docs.ruby-lang.org/
puts res.code
puts res.body
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that paapi_mini 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.