done
This commit is contained in:
parent
e72dfa7c1a
commit
8020a8aff3
@ -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
|
||||||
|
|||||||
@ -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).
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user