Skip to content

Instantly share code, notes, and snippets.

View iamlostshe's full-sized avatar
🤖

ivan iamlostshe

🤖
View GitHub Profile
@iamlostshe
iamlostshe / book_scraper.rb
Created July 12, 2025 16:59 — forked from arempe93/book_scraper.rb
A simple book information scraper by ISBN....with images!
require 'open-uri'
require 'nokogiri'
class BookScraper
def self.find_book(isbn)
# Query ISBNsearch and get resulting HTML page with book details
book_page = Nokogiri::HTML(open("http://isbnsearch.org/isbn/#{isbn}"))
book_info = Hash.new