s0rl0v / summarize-300-tg-bot

A telegram bot interface for Yandex GPT 300 API https://300.ya.ru/
https://300.ya.ru/
MIT License
1 stars 1 forks source link

Refactor auth for video API #12

Open s0rl0v opened 3 months ago

s0rl0v commented 3 months ago

Access cookie rotates every 3 weeks:

2024-07-22 17:28:56,703 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): 300.ya.ru:443
2024-07-22 17:28:56,936 - urllib3.connectionpool - DEBUG - https://300.ya.ru:443 "POST /api/generation HTTP/1.1" 200 211
2024-07-22 17:28:56,937 - root - DEBUG - {'content_id': '', 'keypoints': [], 'normalized_url': '', 'poll_interval_ms': 3000, 'session_id': '5cc11ae1-372c-4c71-92cc-c6b2400e4196', 'sharing_url': '', 'status_code': 1, 'summary_age_seconds': 0, 'title': '', 'type': 'video'}