This commit is contained in:
Hossein 2025-09-23 12:42:20 +03:30
parent e72dfa7c1a
commit 8020a8aff3
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from datetime import datetime
class ScrapeRequest(BaseModel): class ScrapeRequest(BaseModel):
username: str username: str
seller_id: UUID seller_id: UUID
max_count: int = Field(default=30, ge=1, le=50) max_count: int = Field(default=5, ge=1, le=50)
class ScrapedPost(BaseModel): class ScrapedPost(BaseModel):
ig_post_id: str ig_post_id: str

View File

@ -13,7 +13,7 @@ BOXAPI_ENDPOINT = os.environ.get(
class BoxAPIError(Exception): class BoxAPIError(Exception):
pass pass
def get_media(username: str, count: int = 30) -> Tuple[List[Dict[str, Any]], str]: def get_media(username: str, count: int = 10) -> Tuple[List[Dict[str, Any]], str]:
""" """
Calls BoxAPI and returns (items, log_path). Calls BoxAPI and returns (items, log_path).
""" """