2024-04-09 11:35:08 +00:00
# This projet is WIP
## Completed Tasks
- [x] Text results
- [x] Image results
2024-04-15 06:35:17 +00:00
- [X] Video results
2024-04-15 20:34:50 +00:00
- [X] Map results
2024-04-09 11:35:08 +00:00
- [x] HTML+CSS site (no JS version)
## Pending Tasks
- [ ] Forums results
- [ ] Torrent results
- [ ] Website with JS version
- [ ] JS applets for results (such as calculator)
- [ ] Dynamic results loading as user scrolls
- [ ] Replace fonts, replace icons font for SVG or remove unnecessary icons for faster loading
- [ ] LXC container
- [ ] Docker container
2024-04-05 10:44:11 +00:00
# Go Search Engine
2024-03-27 17:18:21 +00:00
2024-04-15 20:34:50 +00:00
A self-hosted [metasearch engine ](https://en.wikipedia.org/wiki/Metasearch_engine ) that respects privacy, contains no ads, and serves as a proxy/alternative to Google website.
2024-04-05 10:44:11 +00:00
## Features
- Text search using Google search results.
2024-04-15 06:35:17 +00:00
- Image search using the Qwant API.
- Video search using Piped API.
2024-04-05 10:44:11 +00:00
- Image viewing using proxy and direct links to image source pages for image searches.
## 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
```bash
git clone https://weforgecode.xyz/Spitfire/Search.git
2024-04-15 06:35:17 +00:00
cd Search
chmod +x ./run.sh
./run.sh
2024-04-05 10:44:11 +00:00
```
## 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.
2024-04-05 12:15:43 +00:00
- `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.
2024-04-05 10:44:11 +00:00
- `/templates` : Directory containing HTML templates for rendering the search interface and results.
- `search.html` : The main search page template.
2024-04-15 06:35:17 +00:00
- `text.html` : Template for displaying text search results.
2024-04-05 10:44:11 +00:00
- `images.html` : Template for displaying image search results.
2024-04-15 06:35:17 +00:00
- `videos.html` : Template for displaying video search results.
2024-04-05 10:44:11 +00:00
- `/static/css` : Directory for CSS stylesheets.
2024-04-15 06:35:17 +00:00
- `style.css` : The main stylesheet for the search interface and results.
- `/static/css` : Directory for fonts and icons (as font).