()
| 1847 | |
| 1848 | @app.route('/api/scrape/start', methods=['POST']) |
| 1849 | def scrape_start(): |
| 1850 | data = request.json |
| 1851 | target = data.get('target') |
| 1852 | platform = data.get('platform') |
| 1853 | options = data.get('options', {}) |
| 1854 | |
| 1855 | if not target or not platform: |
| 1856 | return jsonify({"status": "error", "message": "Target or platform missing"}), 400 |
| 1857 | |
| 1858 | task_id = scrape_manager.start_task(target, platform, options) |
| 1859 | return jsonify({"status": "ok", "taskId": task_id}) |
| 1860 | |
| 1861 | @app.route('/api/scrape/status', methods=['POST']) |
| 1862 | def scrape_status(): |
nothing calls this directly
no test coverage detected