MCPcopy Create free account

hub / github.com/ScrapeGraphAI/scrapecraft / functions

Functions307 in github.com/ScrapeGraphAI/scrapecraft

↓ 13 callersMethodadd_transition
Add a phase transition to history.
backend/app/models/workflow.py:105
↓ 11 callersMethodget_workflow
Get workflow state for a pipeline.
backend/app/services/workflow_manager.py:26
↓ 6 callersFunctionget_llm
Get the OpenRouter LLM instance configured for Kimi-k2.
backend/app/services/openrouter.py:4
↓ 5 callersMethod_broadcast_workflow_update
Broadcast workflow state update to connected clients.
backend/app/services/workflow_manager.py:295
↓ 5 callersMethod_send_safe
Safely send message to websocket.
backend/app/services/enhanced_websocket.py:221
↓ 5 callersMethodsearch_urls
Search for URLs using ScrapeGraphAI SearchScraper.
backend/app/services/scrapegraph.py:79
↓ 4 callersMethod_extract_domain
Extract domain from URL.
backend/app/services/pattern_learner.py:130
↓ 4 callersMethodbroadcast
Broadcast message to all connections for a pipeline.
backend/app/services/enhanced_websocket.py:186
↓ 4 callersMethodbroadcast
Broadcast a message to all connections for a pipeline.
backend/app/services/websocket.py:55
↓ 4 callersFunctionget_enhanced_workflow_manager
Get or create enhanced workflow manager instance.
backend/app/services/workflow_manager_v2.py:265
↓ 4 callersFunctionget_workflow_manager
Get or create workflow manager instance.
backend/app/services/workflow_manager.py:325
↓ 4 callersMethodprocess_message
Process a message through the appropriate agent.
backend/app/services/workflow_manager_v2.py:50
↓ 4 callersMethodstream_execution_updates
Stream execution updates to connected clients.
backend/app/services/websocket.py:138
↓ 3 callersMethod_classify_data_type
Classify the type of data being scraped based on schema.
backend/app/services/pattern_learner.py:136
↓ 3 callersMethod_get_domain_knowledge
Get domain-specific knowledge.
backend/app/services/pattern_learner.py:365
↓ 3 callersMethod_get_fallback_schema
Get fallback schema when parsing fails.
backend/app/agents/unified_agent.py:816
↓ 3 callersMethodget_phase_progress
Get progress percentage based on current phase.
backend/app/models/workflow.py:154
↓ 3 callersMethodget_workflow
Get workflow state for a pipeline.
backend/app/services/workflow_manager_v2.py:37
↓ 3 callersMethodprocess_message
Process a user message and return the response.
backend/app/agents/scraping_agent.py:187
↓ 3 callersFunctionuuidv4
()
frontend/src/store/chatStore.ts:7
↓ 2 callersMethod_add_to_conversation
Add a message to conversation history.
backend/app/agents/unified_agent.py:282
↓ 2 callersMethod_add_to_history
Add a message to conversation history.
backend/app/agents/openrouter_agent.py:95
↓ 2 callersMethod_generate_optimized_code
Generate optimized scraping code without Pydantic schemas.
backend/app/agents/unified_agent.py:826
↓ 2 callersMethod_generate_schema_suggestions
Use AI to generate relevant schema field suggestions based on the search topic and URLs.
backend/app/agents/openrouter_agent.py:600
↓ 2 callersMethod_get_conversation_history
Get recent conversation history.
backend/app/agents/unified_agent.py:301
↓ 2 callersMethod_get_conversation_history
Get conversation history for a pipeline.
backend/app/agents/openrouter_agent.py:91
↓ 2 callersMethod_get_or_create_context
Get existing context or create new one.
backend/app/agents/unified_agent.py:209
↓ 2 callersMethod_update_context
Update stored context.
backend/app/agents/unified_agent.py:1012
↓ 2 callersMethodadd_user_modification
Track user modifications.
backend/app/models/workflow.py:118
↓ 2 callersMethodapprove_action
Process an approval request.
backend/app/services/workflow_manager.py:143
↓ 2 callersMethodbroadcast_to_others
Broadcast message to all connections except sender.
backend/app/services/enhanced_websocket.py:202
↓ 2 callersMethodcan_transition_to
Check if transition to target phase is allowed.
backend/app/models/workflow.py:170
↓ 2 callersMethodconnect
Accept and store a new WebSocket connection.
backend/app/services/websocket.py:16
↓ 2 callersMethodcreate_workflow
Create a new workflow state.
backend/app/services/workflow_manager.py:30
↓ 2 callersMethoddisconnect
Remove a WebSocket connection.
backend/app/services/websocket.py:39
↓ 2 callersMethodexecute_pipeline
Execute the generated code (placeholder).
backend/app/agents/langgraph_agent.py:674
↓ 2 callersFunctiongetStatusColor
(status: string)
frontend/src/components/Layout/StatusBar.tsx:9
↓ 2 callersFunctionget_user
(username: str)
backend/app/api/auth.py:62
↓ 2 callersFunctionhandleApprovalRequest
(approval: any)
frontend/src/components/Workflow/WorkflowSidebar.tsx:140
↓ 2 callersFunctionhandleExport
(format: 'json' | 'csv')
frontend/src/components/Pipeline/OutputDisplay.tsx:79
↓ 2 callersMethodprocess_approval
Process an approval request.
backend/app/models/workflow.py:144
↓ 2 callersMethodprocess_message
Process a user message through the agent.
backend/app/agents/langgraph_tools_agent.py:130
↓ 2 callersMethodsend_personal_message
Send a message to a specific WebSocket connection.
backend/app/services/websocket.py:48
↓ 2 callersMethodsmart_scraper
Execute SmartScraper with retry logic. Args: website_url: URL to scrape user_prompt: Natural languag
backend/app/services/scraping_service_enhanced.py:73
↓ 2 callersMethodsuggest_optimizations
Suggest optimizations based on learned patterns.
backend/app/services/pattern_learner.py:279
↓ 1 callersMethod_adapt_pipeline
Adapt a template pipeline to current context.
backend/app/agents/unified_agent.py:937
↓ 1 callersMethod_analyze_intent
Use AI to analyze user intent and determine action needed.
backend/app/agents/openrouter_agent.py:209
↓ 1 callersMethod_analyze_intent_with_context
Analyze user intent with full conversation context.
backend/app/agents/unified_agent.py:314
↓ 1 callersMethod_analyze_url_relevance
Use AI to analyze and filter URLs based on relevance to the user's prompt.
backend/app/agents/openrouter_agent.py:280
↓ 1 callersMethod_apply_optimizations
Apply suggested optimizations to context.
backend/app/agents/unified_agent.py:965
↓ 1 callersMethod_auto_release_lock
Auto-release edit lock after timeout.
backend/app/services/enhanced_websocket.py:365
↓ 1 callersMethod_auto_save_draft
Auto-save draft after delay.
backend/app/services/enhanced_websocket.py:394
↓ 1 callersMethod_broadcast_workflow_update
Broadcast workflow state update to connected clients.
backend/app/services/workflow_manager_v2.py:215
↓ 1 callersMethod_build_graph
Build the LangGraph state machine.
backend/app/agents/langgraph_agent.py:103
↓ 1 callersMethod_build_graph
Build the tool-based agent graph.
backend/app/agents/langgraph_tools_agent.py:59
↓ 1 callersMethod_build_graph
(self)
backend/app/agents/scraping_agent.py:35
↓ 1 callersMethod_build_system_prompt
Build the system prompt for the agent.
backend/app/agents/unified_agent.py:80
↓ 1 callersMethod_create_agent
Create the LangChain agent with tools.
backend/app/agents/kimi_agent.py:19
↓ 1 callersMethod_find_similar_pipelines
Find similar pipelines from repository.
backend/app/agents/unified_agent.py:385
↓ 1 callersMethod_format_conversation_for_context
Format recent conversation history for context.
backend/app/agents/openrouter_agent.py:115
↓ 1 callersMethod_generate_simple_code
Generate simple Python code for scraping.
backend/app/agents/simple_agent.py:73
↓ 1 callersMethod_generate_smartscraper_code
Generate SmartScraper code (reused from previous implementation).
backend/app/agents/langgraph_agent.py:724
↓ 1 callersMethod_generate_smartscraper_code
Generate correct SmartScraper API code based on schema and URLs.
backend/app/agents/openrouter_agent.py:496
↓ 1 callersMethod_get_next_phase
Get the next logical phase in the workflow.
backend/app/services/workflow_manager.py:229
↓ 1 callersMethod_get_tools
Get all available tools.
backend/app/agents/langgraph_tools_agent.py:49
↓ 1 callersMethod_handle_direct_urls
Handle messages with direct URLs.
backend/app/agents/openrouter_agent.py:448
↓ 1 callersMethod_handle_general_message
Handle general conversation about schema, code generation, etc.
backend/app/agents/openrouter_agent.py:638
↓ 1 callersMethod_handle_url_search
Handle URL search requests using AI-determined search query.
backend/app/agents/openrouter_agent.py:356
↓ 1 callersMethod_load_pattern_cache
Load frequently used patterns into memory cache.
backend/app/services/pattern_learner.py:99
↓ 1 callersMethod_parse_actions
Parse the AI response for actions to update context.
backend/app/agents/openrouter_agent.py:172
↓ 1 callersMethod_parse_search_results
Parse search results from various response formats.
backend/app/services/scraping_service_enhanced.py:206
↓ 1 callersMethod_process_by_intent
Process message based on detected intent.
backend/app/agents/unified_agent.py:407
↓ 1 callersMethod_process_learning_batch
Process a batch of learning data.
backend/app/services/pattern_learner.py:402
↓ 1 callersMethod_process_with_state_agent
Process message using the original state-based agent.
backend/app/services/workflow_manager_v2.py:144
↓ 1 callersMethod_process_with_tools_agent
Process message using the tool-based agent.
backend/app/services/workflow_manager_v2.py:72
↓ 1 callersMethod_record_error_pattern
Record error patterns for learning.
backend/app/services/pattern_learner.py:270
↓ 1 callersMethod_schedule_auto_save
Schedule auto-save of draft.
backend/app/services/enhanced_websocket.py:382
↓ 1 callersMethod_search_fallback
Fallback search using web scraping.
backend/app/services/scraping_service_enhanced.py:176
↓ 1 callersMethod_simple_url_search_check
Simple fallback check for URL search intent.
backend/app/agents/openrouter_agent.py:267
↓ 1 callersMethod_suggest_next_actions
Suggest next actions based on current state.
backend/app/agents/unified_agent.py:997
↓ 1 callersMethod_suggest_schema_fields
Suggest schema fields based on URLs and description.
backend/app/agents/unified_agent.py:769
↓ 1 callersMethod_update_domain_knowledge
Update domain knowledge base.
backend/app/services/pattern_learner.py:451
↓ 1 callersMethod_update_pattern
Update pattern database with new learning.
backend/app/services/pattern_learner.py:253
↓ 1 callersMethod_update_workflow_from_result
Update workflow state from agent result.
backend/app/services/workflow_manager.py:243
↓ 1 callersMethod_update_workflow_from_result
Update workflow state from agent result.
backend/app/services/workflow_manager_v2.py:173
↓ 1 callersMethod_update_workflow_from_tools
Update workflow state from tool-based agent results.
backend/app/services/workflow_manager_v2.py:163
↓ 1 callersFunctionauthenticate_user
(username: str, password: str)
backend/app/api/auth.py:67
↓ 1 callersFunctioncreate_access_token
(data: dict, expires_delta: Optional[timedelta] = None)
backend/app/api/auth.py:75
↓ 1 callersMethodcreate_approval_request
Create an approval request.
backend/app/models/workflow.py:132
↓ 1 callersMethodcreate_workflow
Create a new workflow state.
backend/app/services/workflow_manager_v2.py:41
↓ 1 callersMethodexecute_pipeline
Execute scraping for multiple URLs concurrently.
backend/app/services/scrapegraph.py:14
↓ 1 callersMethodfinish
Finish streaming and send complete response.
backend/app/services/enhanced_websocket.py:63
↓ 1 callersFunctiongetPhaseStatus
(phaseId: string)
frontend/src/components/Workflow/WorkflowSidebar.tsx:151
↓ 1 callersFunctionget_password_hash
(password)
backend/app/api/auth.py:59
↓ 1 callersMethodget_workflow_summary
Get a summary of the workflow state.
backend/app/services/workflow_manager.py:303
↓ 1 callersFunctionhandleAction
(prompt: string)
frontend/src/components/Chat/QuickActions.tsx:33
↓ 1 callersFunctionhandleAddUrl
()
frontend/src/components/Pipeline/URLManager.tsx:12
↓ 1 callersFunctionhandlePhaseClick
(phaseId: string)
frontend/src/components/Workflow/WorkflowSidebar.tsx:164
↓ 1 callersFunctionhandleQuickAction
(action: typeof quickActions[0])
frontend/src/components/Chat/InputArea.tsx:49
↓ 1 callersFunctionhandleRemoveField
(index: number)
frontend/src/components/Pipeline/SchemaEditor.tsx:51
next →1–100 of 307, ranked by callers