python-sponsorblock/python_sponsorblock/__init__.py
2024-04-24 10:58:48 +02:00

13 lines
297 B
Python

import requests
class SponsorBlockError(Exception):
pass
class SponsorBlock:
def __init__(self, session: requests.Session = None, base_url: str = "https://sponsor.ajay.app"):
self.base_url: str = base_url
self.session: requests.Session = session or requests.Session()