searpl/README.md

37 lines
942 B
Markdown
Raw Normal View History

2020-12-15 15:59:23 +00:00
# searpl
searpl is a small php search engine with the following features:
2020-12-15 16:02:24 +00:00
- [x] robot.txt compliant
- [x] sqlite, so theres no need to run some fancy database daemon
- [x] javascript-free
2020-12-29 21:40:36 +00:00
- [x] no cdns!
2020-12-15 16:02:24 +00:00
- [x] read-only database, nothing is written except with the shell
2020-12-15 15:59:23 +00:00
## licensing
2021-10-22 20:09:44 +00:00
searpl is licensed under an MIT licence, see [LICENSE](LICENSE)
2020-12-15 15:59:23 +00:00
for more information
## setup
this guide assumes you have shell access and are comfortable
using command line tools like git.
- make sure you have php, php-pdo, wget, sqlite3 and git installed
- go in your `htdocs`, `public_html` or whatever and git clone
this repo
- `touch db.sqlite` to create the database
- copy the contents of `create.sql` and paste it into the prompt
on `sqlite3 db.sqlite` to create the table
## crawling
to crawl a site, do `./urls.sh https://example.com`
to recursively crawl, change the recursion limit with -l
```
./urls.sh -l5 https://example.com
```