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

Function get_platforms

api/main.py:151–163  ·  view source on GitHub ↗

Get list of supported platforms

()

Source from the content-addressed store, hash-verified

149
150@app.get("/api/config/platforms")
151async def get_platforms():
152 """Get list of supported platforms"""
153 return {
154 "platforms": [
155 {"value": "xhs", "label": "Xiaohongshu", "icon": "book-open"},
156 {"value": "dy", "label": "Douyin", "icon": "music"},
157 {"value": "ks", "label": "Kuaishou", "icon": "video"},
158 {"value": "bili", "label": "Bilibili", "icon": "tv"},
159 {"value": "wb", "label": "Weibo", "icon": "message-circle"},
160 {"value": "tieba", "label": "Baidu Tieba", "icon": "messages-square"},
161 {"value": "zhihu", "label": "Zhihu", "icon": "help-circle"},
162 ]
163 }
164
165
166@app.get("/api/config/options")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected