A self-hosted meta-search engine that respects privacy, contains no ads, has clean interface and is scalable. https://search.spitfirebrowser.com
Find a file
2024-04-07 15:48:25 +02:00
static added "next page" button 2024-04-07 15:48:25 +02:00
templates added "next page" button 2024-04-07 15:48:25 +02:00
go.mod wip restyling 2024-03-30 18:00:43 +01:00
go.sum Init 2024-03-27 21:30:19 +01:00
imageproxy.go added image proxy 2024-04-05 14:15:43 +02:00
images.go added "next page" button 2024-04-07 15:48:25 +02:00
LICENSE added MIT licence 2024-04-05 13:14:46 +02:00
main.go added "next page" button 2024-04-07 15:48:25 +02:00
README.md added image proxy 2024-04-05 14:15:43 +02:00
text.go updated readme, added image search (website style wip) 2024-04-05 12:44:11 +02:00

Go Search Engine

This project is a versatile search engine built with Go that leverages external APIs to fetch both image and text search results. It displays these results in a responsive web interface, offering users a comprehensive search experience.

Features

  • Image search using the Qwant API.
  • Text search using Google search results.
  • Responsive web interface for displaying search results with previews.
  • Image viewing using proxy and direct links to image source pages for image searches.
  • Display of text search results with links to source content.

Getting Started

Prerequisites

  • Go (version 1.18 or higher recommended)
  • Access to the internet for fetching results from the Qwant API and Google

Running the Application

git clone https://weforgecode.xyz/Spitfire/Search.git
cd search
go run main.go text.go images.go imageproxy.go

Project Structure

  • main.go: The entry point of the application, setting up the web server and routing.
  • text.go: Handles text search requests, fetching results from Google and processing them for display.
  • images.go: Contains logic for handling image search requests, including fetching data from the Qwant API and preparing it for the template.
  • imageproxy.go: Part of images.go srach logic, handles image reuslts and displays them using proxy.
  • /templates: Directory containing HTML templates for rendering the search interface and results.
    • search.html: The main search page template.
    • images.html: Template for displaying image search results.
    • text.html: (If applicable) Template for displaying text search results.
  • /static/css: Directory for CSS stylesheets.
    • style.css: The main stylesheet for the search interface and results.