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.
只是想順便練寫個爬蟲,剛好發現沒有爬這些網路商店價格的gem.
這個gem會透過ISBN去爬台灣部份網路書店的價格,目前支援 博客來, 誠品, 金石堂。
Add this line to your application's Gemfile:
gem 'book_price'
And then execute:
$ bundle
Or install it yourself as:
$ gem install book_price
require 'book_price'
BookPrice.<store_name>(<isbn>, <parameter>)
function | 名稱 |
---|---|
books | 博客來 |
eslite | 誠品 |
kingStone | 金石堂 |
parameter | explain |
---|---|
p | origin price |
d | discount price |
n | name |
抓誠品
原始價格, 折價, 書名
BookPrice.eslite("9999000914138", "npd")
=> {"name"=>"控制 (電影書衣版)", "price"=>"399", "discount"=>"315"}
抓博客來
折價
BookPrice.books("9999000914138", "d")
=> {"discount"=>"315"}
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that book_price 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.