Night shift: tweet analyzer, data connectors, feed monitor, market watch portal
This commit is contained in:
15
tools/tweet_analyzer_wrapper.sh
Executable file
15
tools/tweet_analyzer_wrapper.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Tweet Analyzer Wrapper - for OpenClaw agent use
|
||||
# Usage: ./tweet_analyzer_wrapper.sh <tweet_url> [output_file]
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
URL="${1:?Usage: $0 <tweet_url> [output_file]}"
|
||||
OUTPUT="${2:-}"
|
||||
|
||||
if [ -n "$OUTPUT" ]; then
|
||||
python3 "$SCRIPT_DIR/analyze_tweet.py" "$URL" -o "$OUTPUT"
|
||||
echo "Analysis written to $OUTPUT"
|
||||
else
|
||||
python3 "$SCRIPT_DIR/analyze_tweet.py" "$URL"
|
||||
fi
|
||||
Reference in New Issue
Block a user