2024-04-18 11:57:24 +02:00
|
|
|
from dataclasses import dataclass
|
2024-04-18 15:27:00 +02:00
|
|
|
from typing import Any, List
|
2024-04-18 11:57:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
|
class ElementItem:
|
2024-04-18 15:27:00 +02:00
|
|
|
feed_name: str
|
2024-04-18 11:57:24 +02:00
|
|
|
el: Any
|
2024-04-18 15:27:00 +02:00
|
|
|
image_urls: List[str]
|
|
|
|
|
images: List[Any]
|
|
|
|
|
file_urls: List[str]
|
|
|
|
|
files: List[Any]
|
|
|
|
|
audio_urls: List[str]
|
|
|
|
|
audios: List[Any]
|
|
|
|
|
video_urls: List[str]
|
|
|
|
|
videos: List[Any]
|
2024-04-18 11:57:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
|
class ChannelElementItem:
|
2024-04-18 15:27:00 +02:00
|
|
|
feed_name: str
|
2024-04-18 11:57:24 +02:00
|
|
|
el: Any
|
2024-04-18 15:27:00 +02:00
|
|
|
image_urls: List[str]
|
|
|
|
|
images: List[Any]
|