Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
yahoo_content_analysis
Advanced tools
Use the Yahoo! Content Analysis API to extract topics and entities.
OAuth 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.
(I am not seeing the additional metadata nor related entities returned as the Yahoo docs claim they should, so YMMV.)
Add this line to your application's Gemfile:
gem 'yahoo_content_analysis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yahoo_content_analysis
require 'yahoo_content_analysis'
YahooContentAnalysis.configure{|y|
y.api_key = ENV['YAHOO_API_KEY']
y.api_secret = ENV['YAHOO_API_SECRET']
}
# you can query text
text = 'Italian sculptors and painters of the renaissance favored the Virgin Mary for inspiration.'
r = YahooContentAnalysis::Client.new.analyze(text)
names = r.entities.map { |e| e.name }
# you can also query a uri
uri = 'http://www.npr.org/2015/06/03/411524156/in-search-of-the-red-cross-500-million-in-haiti-relief'
r = YahooContentAnalysis::Client.new.analyze(uri)
names = r.entities.map { |e| e.name }
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_content_analysis 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.