30
tests/test_toolzu_captcha.sh
Executable file
30
tests/test_toolzu_captcha.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Quick test of Toolzu with 2captcha
|
||||
|
||||
echo "Testing Toolzu Stories download with 2captcha support..."
|
||||
echo ""
|
||||
|
||||
cd /opt/media-downloader
|
||||
|
||||
# Create test config
|
||||
cat > /tmp/toolzu_test_config.json << 'INNER_EOF'
|
||||
{
|
||||
"username": "evalongoria",
|
||||
"content_type": "stories",
|
||||
"temp_dir": "/tmp/toolzu_test",
|
||||
"days_back": 3,
|
||||
"max_downloads": 5,
|
||||
"headless": false,
|
||||
"db_path": "/opt/media-downloader/database/media_downloader.db",
|
||||
"twocaptcha_api_key": "cf57fdb7577ada64d150431d6589c8f4",
|
||||
"cookie_file": "/opt/media-downloader/cookies/toolzu_cookies.json",
|
||||
"toolzu_email": "",
|
||||
"toolzu_password": ""
|
||||
}
|
||||
INNER_EOF
|
||||
|
||||
# Run test
|
||||
timeout 180 ./venv/bin/python ./toolzu_subprocess_wrapper.py < /tmp/toolzu_test_config.json
|
||||
|
||||
echo ""
|
||||
echo "Test complete!"
|
||||
Reference in New Issue
Block a user