Fix: プライベートリポジトリURLを削除
All checks were successful
Deploy Docusaurus Site / deploy (push) Successful in 26s
All checks were successful
Deploy Docusaurus Site / deploy (push) Successful in 26s
This commit is contained in:
parent
b49848ac65
commit
e19148d0bb
@ -40,17 +40,7 @@ SearXNGは**プライバシー重視のメタ検索エンジン**(オープン
|
||||
- Docker環境(LXC、VM、物理サーバー等)
|
||||
- ポート8080が空いている
|
||||
|
||||
### ワンライナーでセットアップ
|
||||
|
||||
```bash
|
||||
curl -fsSL https://gitea.swallow.wjg.jp/swallow/searxng-setup/raw/branch/main/setup.sh | sudo bash
|
||||
```
|
||||
|
||||
:::tip 手動セットアップ
|
||||
プライベートリポジトリなので、以下の手順でも可能です。
|
||||
:::
|
||||
|
||||
### 手動セットアップ
|
||||
### Docker Composeでセットアップ
|
||||
|
||||
```bash
|
||||
# 必要なパッケージ
|
||||
@ -155,7 +145,7 @@ def search(query: str, num_results: int = 5) -> list:
|
||||
"""SearXNGで検索"""
|
||||
response = requests.get(
|
||||
"http://localhost:8080/search",
|
||||
params={"q": query, "format": "json"}
|
||||
params={"q": query, "format": json}
|
||||
)
|
||||
return response.json()["results"][:num_results]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user