2025-01-18 23:29:29 +03:00
2025-01-18 21:26:13 +03:00
2025-01-18 21:26:13 +03:00
2025-01-18 22:04:42 +03:00
2025-01-18 21:26:13 +03:00
2025-01-18 21:26:13 +03:00
2025-01-18 21:26:13 +03:00
2025-01-18 23:29:29 +03:00
2025-01-18 21:26:13 +03:00
2025-01-18 22:17:18 +03:00
2025-01-18 21:36:10 +03:00

Unoffical Goodreads Book Search

This library allows you to retrieve book information from Goodreads using only the ISBN number, without needing an API key. The library analyzes Goodreads' HTML structure and returns book details in JSON format. It works asynchronously (based on Promises).

Features

  • 📚 Retrieves book information from Goodreads using the ISBN number.
  • 🖼️ Returns detailed information such as book cover, title, author, genre, and publication date.
  • 🕒 Customizable delay between requests.
  • Tests integrated with Mocha and Chai.
  • 🌐 Web data is fetched and parsed using Axios and Cheerio.

🎯 Requirements

  • Node.js (v14 veya üzeri)
  • NPM
  • Internet connection
  • Curiosity

📦 Installation

npm install szbk-goodreads-search-api

🚀 Usage

The following example shows how to use the API:

const GoodreadsBookSearch = require("szbk-goodreads-search-api");

(async () => {
  try {
    const BookSearch = new GoodreadsBookSearch();
    const bookDetails = await BookSearch.getBookDetails("9944824453");

    console.log(bookDetails);
  } catch (error) {
    console.error("Hata:", error.message);
  }
})();


// Example Output:
{
  title: 'Dövmeli Adam',
  thumbImage: 'https: //res.cloudinary.com/path/to/image.jpg',
  authorName: {
    author: { name: 'Peter V. Brett', profileLink: '/author/show/12345'
    },
    translators: ['Çevirmen Adı 1', 'Çevirmen Adı 2'
    ]
  },
  description: 'Kitap açıklaması burada yer alır.',
  page: '640',
  isbn: '9944824453',
  date: '01 Sept 2008',
  rate: '4.3',
  genres: ['Fantasy', 'Adventure', 'Action'
  ]
}

📂 Project Structure

szbk-goodreads-search-book
├── config
   └── index.js        # Configuration file
├── lib
   ├── index.js        # GoodreadsBookSearch class
   └── module.js       # Data processing and parsing operations
├── test
   └── index.js        # Integration tests
├── index.js            # Entry point
├── package.json        # Dependencies and scripts
└── README.md           # Documentation

🧪 Tests

To run the tests, follow these steps:

  1. Install test dependencies:
    npm install
    
  2. Run the tests:
    npm test
    
Description
No description provided
Readme 47 KiB
Languages
JavaScript 100%