作者小秋
来源公众号开源前哨
【导语】:自托管、无广告、严格保护隐私的搜索引擎。
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
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
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
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 访问应用。
pipx install git+https://github.com/benbusby/whoogle-search.git
沙盒临时安装:
pipx run --spec git+https://github.com/benbusby/whoogle-search.git whoogle-search
pip install whoogle-search
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
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 作为主要的搜索引擎。
在移动应用设置页面中,点击“常规”部分中的“搜索”。应该有一个标题为“添加搜索引擎”的选项可供选择。提示输入标题和搜索查询 url,使用以下元素填写表单:
名称: "Whoogle"
要使用的搜索字符串: https://
搜索网址:`https:///search?q={query}
标题:(随意)
关键词:whoogle
页面更新:2024-05-19
本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828
© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号