Crawler start request
| 61 | |
| 62 | |
| 63 | class CrawlerStartRequest(BaseModel): |
| 64 | """Crawler start request""" |
| 65 | platform: PlatformEnum |
| 66 | login_type: LoginTypeEnum = LoginTypeEnum.QRCODE |
| 67 | crawler_type: CrawlerTypeEnum = CrawlerTypeEnum.SEARCH |
| 68 | keywords: str = "" # Keywords for search mode |
| 69 | specified_ids: str = "" # Post/video ID list for detail mode, comma-separated |
| 70 | creator_ids: str = "" # Creator ID list for creator mode, comma-separated |
| 71 | start_page: int = 1 |
| 72 | enable_comments: bool = True |
| 73 | enable_sub_comments: bool = False |
| 74 | save_option: SaveDataOptionEnum = SaveDataOptionEnum.JSONL |
| 75 | cookies: str = "" |
| 76 | headless: bool = False |
| 77 | max_notes_count: Optional[int] = Field(default=None, ge=1, le=MAX_API_LIMIT_COUNT) |
| 78 | max_comments_count: Optional[int] = Field(default=None, ge=1, le=MAX_API_LIMIT_COUNT) |
| 79 | |
| 80 | |
| 81 | class CrawlerStatusResponse(BaseModel): |