
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.
#awis-wrapper
This is the wrapper for AWIS service, this thought derive from Ishango2 project.
##Usage
Amazon::Awis.options = {:aws_access_key_id => "123", :aws_secret_key => "456", :action => "UrlInfo", :responsegroup => "RankByCountry"}
#Or with one block
Amazon::Awis.configure do |options|
# options[:aws_access_key_id] = [your access key]
# options[:aws_secret_key] = [you secret key]
options[:responsegroup] = 'Rank'
end
#Call get_info method to get single website info
res = Amazon::Awis.get_info('yahoo.com')
if res.success?
all_countries = res.get_all('country')
all_countries.each do |c|
c.contribution.first.users.first #navigate into the children tree. the accociations always return Array, so note the 'first' method.
end
end
#Or get multiple websites info with batch request
res = Amazon::Awis.get_info(]'yahoo.com', 'cnn.com')
if res.success?
res.get_all('response') # get all repsonse items in the document, then you can iterate all the response data with each "aws:Response"
element = res.get('response') # this would get only one(the first) item in the document
element.get_all_child('country') # all "aws:Country" items searched from current element. return Element class.
#or directly access
element.operation_request.first.request_id # would convert to camel case automaticly
# to access the attribute
element['Code'] == "US"
end
Copyright (c) 2013 Vincent.Z. See LICENSE.txt for further details.
FAQs
Unknown package
We found that awis-wrapper 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.