Skip to content
/ quotz Public

A Node.js application demonstrating the use of Puppeteer and Orama SDK to create a quote database and search API.

Notifications You must be signed in to change notification settings

thewrlck/quotz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quotz

A Node.js application demonstrating the use of Puppeteer and Orama SDK to create a quote database and search API.

Features

Quote Scraping: Use Puppeteer to gather 100 famous quotes from a specified website, iterating through multiple pages.

Data Enrichment: Utilizes Orama SDK to save metadata and scraped quotes.

API

  • /quotes: Save a list of 100 scraped enriched quotes.
  • /search: Enables searching for specific terms within the quote dataset using Orama's search capabilities.

Getting Started

Install dependencies: npm install

Build packages: npm run build

Run the API: npm run api

Run with Chrome browser: http://localhost:3000/quotes

Try to search by author or text:

  • http://localhost:3000/search?q=Albert
  • http://localhost:3000/search?q=Jk+Rowling
  • http://localhost:3000/search?q=thinking

Note: This project is primarily intended as a learning exercise for Orama SDK and is subject to future enhancements.

Potential Improvements

  • Implementation of various search types
  • Development of a user-friendly interface
  • Expansion of the quote dataset with user inputs
  • Optimization of scraping and data processing

By clearly outlining the project's purpose, features, and potential future directions, this description provides a comprehensive overview for potential users and contributors.

About

A Node.js application demonstrating the use of Puppeteer and Orama SDK to create a quote database and search API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published