haw230 / a-search-of-hogwarts

Tool for searching through the 7 Harry Potter books (Potter Search)

Home Page:https://www.potter-search.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potter Search

Tool for searching through the 7 Harry Potter books. Hosted at potter-search.com

Potter Search API

The API is accesible at https://1100h19.pythonanywhere.com/

GET /

Ping to make sure the server is up and running.

POST /api/search

Payload

{
    "search": "search_term",
    "books": [/* List of 7 booleans representing which books are checked off */],
    "page": 1 // Requests are paginated to 20 items
}

Response

{
    "found": [
        "text": "...",
        "book": "The Deathly Hallows"
    ]
}

POST /api/count

Payload

{
    "search": "search_term",
}

Response

{
    "found": [{"book1": 90, ... , "book7": 0}]
    "search": "search_term"
}

How It Works

React frontend makes requests to Flask backend. The frontend is hosted on AWS Amplify and the backend is hosted at GCP App Engine.

To Do

  • Fuzzy matching
  • Parallax scrolling

About

Tool for searching through the 7 Harry Potter books (Potter Search)

https://www.potter-search.com/


Languages

Language:Jupyter Notebook 68.2%Language:JavaScript 18.2%Language:Python 8.9%Language:HTML 4.0%Language:CSS 0.5%Language:Shell 0.2%