diff --git a/schemas.py b/schemas.py index 81547c2..7ab5322 100644 --- a/schemas.py +++ b/schemas.py @@ -6,7 +6,7 @@ from datetime import datetime class ScrapeRequest(BaseModel): username: str 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): ig_post_id: str diff --git a/utils/boxapi_client.py b/utils/boxapi_client.py index e499466..e671e08 100644 --- a/utils/boxapi_client.py +++ b/utils/boxapi_client.py @@ -13,7 +13,7 @@ BOXAPI_ENDPOINT = os.environ.get( class BoxAPIError(Exception): 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). """