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

Function get_config_options

api/main.py:167–188  ·  view source on GitHub ↗

Get all configuration options

()

Source from the content-addressed store, hash-verified

165
166@app.get("/api/config/options")
167async def get_config_options():
168 """Get all configuration options"""
169 return {
170 "login_types": [
171 {"value": "qrcode", "label": "QR Code Login"},
172 {"value": "cookie", "label": "Cookie Login"},
173 ],
174 "crawler_types": [
175 {"value": "search", "label": "Search Mode"},
176 {"value": "detail", "label": "Detail Mode"},
177 {"value": "creator", "label": "Creator Mode"},
178 ],
179 "save_options": [
180 {"value": "jsonl", "label": "JSONL File"},
181 {"value": "json", "label": "JSON File"},
182 {"value": "csv", "label": "CSV File"},
183 {"value": "excel", "label": "Excel File"},
184 {"value": "sqlite", "label": "SQLite Database"},
185 {"value": "db", "label": "MySQL Database"},
186 {"value": "mongodb", "label": "MongoDB Database"},
187 ],
188 }
189
190
191# Mount static resources - must be placed after all routes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected