Commit Graph

2 Commits

Author SHA1 Message Date
ad850b2243 fix: Modal API authentication working with SDK
- Discovered Modal requires SDK, not raw HTTP
- Token ID and Secret work with modal.Client.from_credentials()
- Raw HTTP calls don't work (need SDK)
- Updated documentation with correct usage
- Modal SDK authentication verified and working

Next: Integrate Modal SDK for scraping assistance when direct methods fail
2026-04-10 21:38:46 -04:00
18e99dcc3d feat: Add Modal API fallback for scraping
- Created modal_api.py module for Modal GLM API integration
- Provides fallback when direct scraping fails
- Can parse eBay listings and other marketplace data
- Configuration via modal_config.json
- Ready to use when direct scraping is blocked

API endpoint configured:
- Model: zai-org/GLM-5.1-FP8
- Endpoint: https://api.us-west-2.modal.direct/v1/chat/completions
- Usage: scrape_with_modal(url, task)
2026-04-10 18:36:36 -04:00