告别某度?一个开源无广告自托管的搜索引擎

作者小秋

来源公众号开源前哨

【导语】:自托管、无广告、严格保护隐私的搜索引擎。

简介

Whoogle-search 是一个自托管、免广告的搜索引擎,它不存在 AMP 链、Cookie、IP 追踪等暴露个人隐私的问题。一键即可轻松部署为 Docker 应用程序,拉起来一个免 AD 的搜索服务,用来获取 Google 搜索结果。可作为台式机和移动设备上的主要搜索引擎替代品,快速而简单地实施。

功能特点:

项目地址:

https://github.com/benbusby/whoogle-search

告别某度?一个开源无广告自托管的搜索引擎

下载安装

依赖关系

如果使用 Heroku Quick Deploy,则可以跳过此部分内容,否则请参考:

macOS:

brew install openssl curl-openssl

Ubuntu:

sudo apt-get install -y libcurl4-openssl-dev libssl-dev

Arch:

pacman -S curl openssl

安装

  1. Heroku
https://heroku.com/deploy?template=https://github.com/benbusby/whoogle-search/tree/heroku-app-beta

需要 Heroku 账户,Heroku 提供以下功能:

https://github.com/benbusby/whoogle-search#prevent-downtime-heroku-only
  1. Repl.it
https://repl.it/github/benbusby/whoogle-search

需要 Replit 账户,Replit 提供以下功能:

https://repl.it/talk/ask/use-this-pingmat1replco-just-enter/28821/101298
https://repl.it/talk/learn/How-to-use-and-setup-UptimeRobot/9003
  1. Fly.io
https://fly.io/

需要一个 Fly.io 账户。安装 CLI:

curl -L https://fly.io/install.sh | sh

部署应用:

fly apps create --org personal --port 5000
fly deploy

然后就可以通过 https://app-name.fly.dev 访问应用。

  1. pipx 持久化安装:
pipx install git+https://github.com/benbusby/whoogle-search.git

沙盒临时安装:

pipx run --spec git+https://github.com/benbusby/whoogle-search.git whoogle-search
  1. pip
pip install whoogle-search
  1. 手动安装

clone 代码仓库并运行以下命令,在本地环境中启动应用程序:

git clone https://github.com/benbusby/whoogle-search.git
cd whoogle-search
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./run

可以将其添加为系统服务,向 /lib/systemd/system/whoogle.service 文件添加以下内容:

[Unit]
Description=Whoogle

[Service]
# Basic auth configuration, uncomment to enable
#Environment=WHOOGLE_USER=
#Environment=WHOOGLE_PASS=
# Proxy configuration, uncomment to enable
#Environment=WHOOGLE_PROXY_USER=
#Environment=WHOOGLE_PROXY_PASS=
#Environment=WHOOGLE_PROXY_TYPE=
# Site alternative configurations, uncomment to enable
# Note: If not set, the feature will still be available
# with default values. 
#Environment=WHOOGLE_ALT_TW=nitter.net
#Environment=WHOOGLE_ALT_YT=invidious.snopyta.org
#Environment=WHOOGLE_ALT_IG=bibliogram.art/u
#Environment=WHOOGLE_ALT_RD=libredd.it
#Environment=WHOOGLE_ALT_TL=lingva.ml
# Load values from dotenv only
#Environment=WHOOGLE_DOTENV=1
Type=simple
User=root
WorkingDirectory=
ExecStart=/venv/bin/python3 -um app --host 0.0.0.0 --port 5000
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=3
SyslogIdentifier=whoogle

[Install]
WantedBy=multi-user.target
  1. Docker 部署 通过 Docker Hub:
docker pull benbusby/whoogle-search
docker run --publish 5000:5000 --detach --name whoogle-search benbusby/whoogle-search:latest

或使用 docker-compose:

git clone https://github.com/benbusby/whoogle-search.git
cd whoogle-search
docker-compose up

或者自行构建镜像运行:

git clone https://github.com/benbusby/whoogle-search.git
cd whoogle-search
docker build --tag whoogle-search:1.0 .
docker run --publish 5000:5000 --detach --name whoogle-search whoogle-search:1.0

浏览器设置

可以在浏览器中设置 Whoogle 作为主要的搜索引擎。

Firefox(桌面版)

Firefox(iOS)

在移动应用设置页面中,点击“常规”部分中的“搜索”。应该有一个标题为“添加搜索引擎”的选项可供选择。提示输入标题和搜索查询 url,使用以下元素填写表单:

Firefox(安卓)

名称: "Whoogle"
要使用的搜索字符串: https://

Alfred (Mac OS X)

搜索网址:`https:///search?q={query}
标题:(随意)
关键词:whoogle

基于 Chrome/Chromium 的浏览器

页面更新:2024-05-19

标签:定义域   搜索引擎   表单   单击   账户   地址栏   应用程序   实例   选项   按钮   菜单   版本   功能   网址   标题   科技

1 2 3 4 5

上滑加载更多 ↓
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号

Top