Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Google Book API integration for fetching the information for google books and magazines and book shelves also filter them. You can eaisly get most of the elements for a particular book and magazine or the books of a book shelf from the google book search. like :-(title,sub title,preview link,authors,publisher,publish date,buylink,downloadlink,version,ISBN information,ratings,...many more..Also you can get the google checkout link for that book/magazine
In Gemfile
gem 'google_book', '0.3.13'
Ruby >= 1.9.3 or jruby >=1.7.x
rails >= 3.0.x
b=GoogleBook::Book.new(:api_key => "YOUR_GOOOGLE_API_KEY")
b.search("Name of the book you want to search",type) #type should be a number
b=GoogleBook::Book.new(:api_key => "YOUR_GOOOGLE_API_KEY")
b.search("keyword or book name",1)
b.book_info.get_all_subtitles # to get all the subtitles of your search book
b.total_count #get the search results count
you can then create a instance of books which was getting by search by following ways
b=GoogleBook::Book.new(:api_key => "YOUR_GOOOGLE_API_KEY")
b.search("Name of the book you want to search",1)
b.books #create the instance of all the books of your search
b.books.first.get_title #get the first book title
b.books.first.get_sub_title#get the first book sub title
b.books.first.authors #get the first book authors
b.books.first.text_snippet_description #get the first book text snippet description
b.books.first.publish_date #get the first book published date
b.books.first.publisher #get the first book publisher name
b.books.first.rating #get the rating of the book
b.books.first.total_rating #get the total rating count of the book
b.books.first.version #get the version of the book
b.books.first.preview_link #get the first book preview link
b.books.first.info_link #get the first book information
b.price #get the book price with currency
b.books.first.thumbnail_image #get the first book thumbnail image
b.books.first.small_thumbnail_link #get the first book thumbnail image
b.books.first.google_checkout_link #get the first book direct google checkout
b.books.first.ISBN_info #isbn info for first book it will return hash like {:ISBN_10 => "778545"}
b=GoogleBook::Book.new(:api_key => "YOUR_GOOOGLE_API_KEY")
b.search('downloadable book name',8)
b.books.first.downloadable?#check whther the book is downloadable
b.books.first.buyable?#check whether the book is buyable
b.books.first.buy_link
b.books.first.download_link
b=GoogleBook::Book.new(:api_key => "YOUR_GOOOGLE_API_KEY")
b.search('downloadable book name',9) #type is 9 for only magazines
b.books #create the magaize instances
b.books.first.magazine?
filter_book=GoogleBook::Book.new(:api_key => "YOUR_GOOOGLE_API_KEY")
filter_book.filter('ruby language', 1)#here one is filter_type as defined above
filter_book.books
If you select your filter as free ebook then it will be downloadable and buyable<code>filter_book.books.first.downloadable?#check whther the book is downloadable</code><br/>
<code>filter_book.books.first.buyable?#check whether the book is buyable</code><br/>
<code>filter_book.books.first.buy_link</code><br/>
<code>filter_book.books.first.download_link</code>
bs=BookShelves.new("GOGLE_BOOKS_USER_ID")
bs.bookshelves #all the book shelves of that user in a instance
bs.bookshelves.first.title #the title of the books shelve first
bs.bookshelves.first.self_link #the title of the books shelve first
bs.bookshelves.first.books#get all the books of that book shelves
bs.bookshelves.first.books.first.get_title
Fork it
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin my-new-feature)
Create new Pull Request
FAQs
Unknown package
We found that google_book 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.