[WIP] sear.c scrapes search results of popular engines, caches them and creates a simple HTML UI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Anton Luka Šijanec a19e3705a2 UTF-8, image support, memory leaks fixed 1 week ago
debian UTF-8, image support, memory leaks fixed 1 week ago
src UTF-8, image support, memory leaks fixed 1 week ago
test initial commit 2 weeks ago
.gitignore initial commit 2 weeks ago
Makefile UTF-8, image support, memory leaks fixed 1 week ago
README.md UTF-8, image support, memory leaks fixed 1 week ago

README.md

sear.c

sear.c is used as a lightweight replacement for SearX that proxies and caches search results from the Google web search engine. The main advantages over SearX are speed and simplicity.

instructions for debian and ubuntu systems

First add my software distribution repository prog.sijanec.eu into your APT sources list.

apt install sear.c
service sear.c start

requirements

  • a POSIX system
  • GNU C library
  • GNU compiler collection (it's written in GNU C - it uses anonymous nested functions)
    • anonymous functions were a pain to debug
  • GNU Make
  • libxml2-dev (for the simple HTML/1.0 client and HTML parser)
  • libmicrohttpd-dev (for serving results - use a reverse proxy, such as nginx, for HTTPS)
  • xxd (for converting HTML pages into C arrays when compiling from source)

compiling from source

make prepare
make

instructions

  • run the daemon - it starts listening on HTTP port 7327 (remember it by picturing phone keyboard buttons with letters SEAR (; )
  • optional: create a reverse proxy for HTTPS
  • navigate to http://localhost:7327 and do a couple of searches to see if everything works
  • the horseshoe button redirects directly to the first result without wasting time on the results page. use if you feel lucky. (BP)
  • the painting button performs a search for images. PRIVACY WARNING: images are loaded directly from servers (not from google)
  • check logs by navigating to /logs.html
  • program also writes all logs to standard error

prebuilt binaries

apart from the usual debian distribution, there are also prebuilt binaries built for amd64 and arm64, as well as debian packages.

before downloading, check that the build passed, indicated below on the badge:

Build Status

screenshots

screenshot in chromium 0 screenshot in chromium 2 screenshot in chromium 3 screenshot in chromium 4 screenshot in chromium 5