daily-wallpaper/providers/provider.py

14 lines
227 B
Python
Raw Normal View History

2024-11-20 04:53:04 -04:00
from abc import abstractmethod, ABC
class Provider(ABC):
name = None
url = None
def __init__(self, settings, session):
self.settings = settings
self.session = session
@abstractmethod
def get_image_url(self):
pass