Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae9fb1d7 authored by asciimoo's avatar asciimoo
Browse files

[enh] initial commit

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+2 −0
Original line number Diff line number Diff line
env
searx.conf

README.md

0 → 100644
+4 −0
Original line number Diff line number Diff line
searx
=====

Minimalistic web interface to different search engines.

requirements.txt

0 → 100644
+3 −0
Original line number Diff line number Diff line
flask
grequests
lxml

searx/__init__.py

0 → 100644
+0 −0

Empty file added.

+15 −0
Original line number Diff line number Diff line

from os.path import realpath, dirname, splitext, join
from os import listdir
from imp import load_source

engine_dir = dirname(realpath(__file__))

engines = []

for filename in listdir(engine_dir):
    modname = splitext(filename)[0]
    if filename.startswith('_') or not filename.endswith('.py'):
        continue
    filepath = join(engine_dir, filename)
    engines.append(load_source(modname, filepath))