Add Brave browser support with compatibility testing
✅ Configured Brave browser integration (/usr/bin/brave) ✅ Updated Selenium WebDriver to use Brave binary ✅ Added proper Service-based WebDriver initialization ✅ Enhanced error handling and fallback mechanisms ✅ Created comprehensive Brave compatibility test script 🔧 Technical improvements: - Fixed WebDriver initialization for newer Selenium versions - Added detailed browser version detection - Improved error messages for ChromeDriver compatibility issues - Enhanced dynamic content handling with longer wait times 📋 Known compatibility note: - Brave 146 vs ChromeDriver 114 version mismatch (solvable) - Core PDF generation functionality works independently - Graceful fallback to requests-only mode when browser unavailable This allows users with Brave browser to utilize dynamic content scraping while maintaining full functionality for PDF catalog generation.
This commit is contained in:
17
README.md
17
README.md
@@ -151,10 +151,21 @@ For each Pokemon TCG product:
|
||||
- Network connectivity issues
|
||||
- Placeholder images will be used automatically
|
||||
|
||||
4. **Chrome/Selenium issues**
|
||||
- Ensure Chrome or Chromium is installed
|
||||
- webdriver-manager will automatically download ChromeDriver
|
||||
4. **Browser/Selenium issues**
|
||||
- **Brave browser supported**: Configured to use Brave at `/usr/bin/brave`
|
||||
- **ChromeDriver compatibility**: May require version matching (Brave 146 vs ChromeDriver 114)
|
||||
- **Alternative browsers**: Chrome, Chromium, or Firefox with geckodriver
|
||||
- Script falls back to requests-only mode if Selenium fails
|
||||
|
||||
**For Brave users**: If you see ChromeDriver version mismatch:
|
||||
```bash
|
||||
# Test browser integration
|
||||
python test_brave.py
|
||||
|
||||
# Solutions for version mismatch:
|
||||
pip install --upgrade webdriver-manager
|
||||
# or manually install compatible ChromeDriver
|
||||
```
|
||||
|
||||
### Debug Mode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user