GrokでWeb検索を実行するコマンドラインツール
Project description
Sercher - Grok Web検索ツール
GrokのAPIを使用してWeb検索を実行するコマンドラインツールです。
インストール
PyPI からインストール(推奨)
pip install sercher
ソースからインストール
git clone https://github.com/sugarkwork/sercher.git
cd sercher
pip install -e .
セットアップ
-
XAI APIキーを取得:
- XAI Console でアカウントを作成
- APIキーを生成
-
環境変数を設定:
# .envファイルを作成(.env.exampleを参考に) cp .env.example .env # .envファイルを編集してAPIキーを設定
または環境変数として直接設定:
export XAI_API_KEY=your_api_key_here
使用方法
基本的な使用方法
sercher "検索キーワード"
モジュール形式で実行
python -m sercher "検索キーワード"
オプション
-v, --verbose: 詳細な出力を表示-h, --help: ヘルプメッセージを表示
使用例
# 基本的な検索
sercher "フランスの首都は何ですか?"
# 詳細出力付き
sercher -v "最新のAI技術について教えて"
# モジュール形式で実行
python -m sercher "今日の天気は?"
開発者向け
パッケージのビルド
python -m build
PyPI へのアップロード
python -m twine upload dist/*
ライセンス
MIT License - 詳細は LICENSE ファイルを参照してください。
貢献
プルリクエストやイシューの報告を歓迎します。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sercher-1.0.1.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sercher-1.0.1.tar.gz.
File metadata
- Download URL: sercher-1.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7963ee9b13f2ebf44c5e2b48f695c96cf59492224f925fe449780ae67578a310
|
|
| MD5 |
2d007a09be0f2c37aa90c4a2bf726cb2
|
|
| BLAKE2b-256 |
025780da5f60b13fdf706cecb6efcdbe31c5d1b08575b773d9bc12b552a4d8ca
|
File details
Details for the file sercher-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sercher-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c5d03cc15dba888220c860f30586c1256b769f42f1c96cbcd91d950a0f00c99
|
|
| MD5 |
3c88e6956f98687ab5a02fb46e6229c8
|
|
| BLAKE2b-256 |
8954d2f92145b44ec8ac2c630d02c5135acff65e34c0bc43dcc468382a7b7b6f
|