Skip to main content

Sercher - Grok Web検索ツール

GrokのAPIを使用してWeb検索を実行するコマンドラインツールです。

インストール

PyPI からインストール(推奨)

pip install sercher

ソースからインストール

git clone https://github.com/sugarkwork/sercher.git
cd sercher
pip install -e .

セットアップ

  1. XAI APIキーを取得:

    • XAI Console でアカウントを作成
    • APIキーを生成
  2. 環境変数を設定:

    # .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 ファイルを参照してください。

貢献

プルリクエストやイシューの報告を歓迎します。

Metadata

Release files for sercher 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sercher 1.0.1
File Size Uploaded
sercher-1.0.1.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sercher 1.0.1
File Interpreter ABI Platform
sercher-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / sercher-1.0.1.tar.gz

Download URL sercher-1.0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7963ee9b13f2ebf44c5e2b48f695c96cf59492224f925fe449780ae67578a310
BLAKE2b-256 checksum
How to use checksums
025780da5f60b13fdf706cecb6efcdbe31c5d1b08575b773d9bc12b552a4d8ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release files / sercher-1.0.1-py3-none-any.whl

Download URL sercher-1.0.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c5d03cc15dba888220c860f30586c1256b769f42f1c96cbcd91d950a0f00c99
BLAKE2b-256 checksum
How to use checksums
8954d2f92145b44ec8ac2c630d02c5135acff65e34c0bc43dcc468382a7b7b6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page