MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / CrawlerStartRequest

Class CrawlerStartRequest

api/schemas/crawler.py:63–78  ·  view source on GitHub ↗

Crawler start request

Source from the content-addressed store, hash-verified

61
62
63class 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
81class CrawlerStatusResponse(BaseModel):

Callers 1

Calls 1

FieldFunction · 0.85

Tested by 1