videotomp3transcriptor/test_auto_login.sh
debian.StillHammer 3735ebdccf feat: YouTube download system complete
 FULLY OPERATIONAL - Tested & working

## Infrastructure
- PO Token Provider (Docker bgutil, port 4416)
- SMS Receiver endpoint (Node.js, port 4417)
- Deno JavaScript runtime (signature decryption)
- Logged-in cookies system

## Features
- Anti-bot bypass (PO Token + cookies)
- Auto-login scripts with SMS forwarding
- Cookie extraction (Camoufox)
- Full automation ready

## Tested
- Multiple videos downloaded successfully
- Audio extraction to MP3 working
- Download speeds 15-30 MB/s

## Documentation
- YOUTUBE_SETUP_COMPLETE.md (full usage guide)
- SMS_FORWARDER_SETUP.md (SMS automation)
- QUICK_SETUP_COOKIES.md (cookie renewal)

## Scripts
- src/sms_receiver.js - SMS webhook endpoint
- src/python/auto_login_full_auto.py - Auto-login with SMS
- test_youtube_download.sh - Test script

Ready for production integration.
2026-01-31 08:21:47 +00:00

49 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# Test script for full auto-login with SMS
echo "🚀 Testing Full Auto-Login with SMS Forwarding"
echo ""
# Check SMS receiver is running
echo "1. Checking SMS Receiver..."
SMS_STATUS=$(curl -s http://localhost:4417/health 2>/dev/null)
if [ $? -eq 0 ]; then
echo " ✅ SMS Receiver running"
else
echo " ❌ SMS Receiver not running - starting..."
cd /home/debian/videotomp3transcriptor
node src/sms_receiver.js &
sleep 3
fi
echo ""
echo "2. Testing SMS endpoint..."
curl -s -X POST http://localhost:4417/sms \
-H "Content-Type: application/json" \
-d '{"from":"Test","body":"Test code 999999"}' > /dev/null
CODE=$(curl -s http://localhost:4417/sms/code | grep -o '"code":"[0-9]*"' | cut -d'"' -f4)
if [ "$CODE" = "999999" ]; then
echo " ✅ SMS endpoint working (code: $CODE)"
else
echo " ❌ SMS endpoint error"
exit 1
fi
echo ""
echo "3. Ready to test auto-login!"
echo ""
echo " Run: export DISPLAY=:99"
echo " Run: cd /home/debian/videotomp3transcriptor"
echo " Run: python3 src/python/auto_login_full_auto.py"
echo ""
echo " The script will:"
echo " - Navigate to Google login"
echo " - Enter email & phone"
echo " - WAIT for SMS (you'll receive on phone)"
echo " - SMS Forwarder sends to server"
echo " - Script reads code automatically"
echo " - Completes login!"
echo ""
echo "📱 Make sure SMS Forwarder is configured and running!"