MCPcopy Create free account

hub / github.com/ScrapeGraphAI/Scrapegraph-ai / functions

Functions904 in github.com/ScrapeGraphAI/Scrapegraph-ai

↓ 2 callersMethodfetch_content
Fetches the HTML content of a given source URL. Args: source (str): The URL to fetch content from. loader_kw
scrapegraphai/nodes/fetch_node_level_k.py:104
↓ 2 callersFunctionget_random_user_agent
Returns a random user agent from the list. Returns: str: Random user agent string.
scrapegraphai/utils/research_web.py:149
↓ 2 callersMethodget_summary
Get summary statistics for a specific test. Args: test_name: Name of the test Returns: BenchmarkSummary if r
tests/fixtures/benchmarking.py:69
↓ 2 callersFunctionget_token_cost_for_model
Get the cost in USD for a given model and number of tokens. Args: model_name: Name of the model num_tokens: Number of tokens
scrapegraphai/utils/custom_callback.py:21
↓ 2 callersFunctionis_telemetry_enabled
()
scrapegraphai/telemetry/telemetry.py:70
↓ 2 callersMethodload
(self)
tests/test_fetch_node_timeout.py:47
↓ 2 callersFunctionlog_graph_execution
( graph_name: str, source: str, prompt: str, schema: dict, llm_model: str, embedder_mo
scrapegraphai/telemetry/telemetry.py:159
↓ 2 callersMethodrun
Executes the web scraping and searching process. Returns: str: The answer to the prompt.
scrapegraphai/graphs/smart_scraper_multi_graph.py:100
↓ 2 callersMethodrun
Executes the web scraping and searching process. Returns: str: The answer to the prompt.
scrapegraphai/graphs/omni_search_graph.py:98
↓ 2 callersMethodrun
Executes the scraping process and returns the generated code. Returns: str: The generated code.
scrapegraphai/graphs/depth_search_graph.py:143
↓ 2 callersMethodrun
Executes the scraping process and returns the generated code. Returns: str: The generated code.
scrapegraphai/graphs/code_generator_graph.py:170
↓ 2 callersMethodrun
Executes the web scraping process and returns the answer to the prompt.
scrapegraphai/graphs/csv_scraper_graph.py:95
↓ 2 callersMethodrun
Executes the web scraping and parsing process first and then concatenate the content and generates answers to a given prompt.
scrapegraphai/graphs/smart_scraper_multi_lite_graph.py:95
↓ 2 callersFunctionset_verbosity_info
Set the verbosity level of the root logger for the library to INFO.
scrapegraphai/utils/logging.py:108
↓ 2 callersMethodstop
Stop the mock server.
tests/fixtures/mock_server/server.py:327
↓ 2 callersMethodvalidate_errors
Ensure errors dictionary has expected structure.
scrapegraphai/utils/code_error_analysis.py:50
↓ 2 callersMethodwait_for_load_state
(self, state)
tests/test_chromium.py:251
↓ 1 callersMethod__init__
( self, prompt: str, source: str, config: dict, schema: Optional[Type[
scrapegraphai/graphs/smart_scraper_multi_batch_graph.py:30
↓ 1 callersMethod__init__
(self, base_graph, burr_config)
scrapegraphai/integrations/burr_bridge.py:114
↓ 1 callersFunction_async_browser_base_fetch
()
scrapegraphai/docloaders/browser_base.py:51
↓ 1 callersFunction_async_fetch_link
(url)
scrapegraphai/docloaders/browser_base.py:46
↓ 1 callersMethod_async_fetch_url
Asynchronously fetch a URL by running the plasmate binary in a thread pool.
scrapegraphai/docloaders/plasmate.py:178
↓ 1 callersMethod_build_prompt_text
Build the full prompt text for a single document. Args: user_prompt: The user's question/prompt. content: The scraped
scrapegraphai/nodes/batch_generate_answer_node.py:112
↓ 1 callersFunction_build_telemetry_payload
Build telemetry payload dict. Returns None if required fields are missing.
scrapegraphai/telemetry/telemetry.py:80
↓ 1 callersFunction_check_config_and_environ_for_telemetry_flag
(default_value: bool, config_obj)
scrapegraphai/telemetry/telemetry.py:39
↓ 1 callersFunction_check_plasmate
Return the path to the plasmate binary, or raise ImportError.
scrapegraphai/docloaders/plasmate.py:31
↓ 1 callersMethod_clean_urls
Cleans the URLs extracted from the text. Args: urls (List[str]): The list of URLs to clean. Returns:
scrapegraphai/nodes/parse_node.py:179
↓ 1 callersMethod_convert_state_from_burr
Convert a Burr state to a dictionary state. Args: burr_state (State): The Burr state to convert. Returns:
scrapegraphai/integrations/burr_bridge.py:195
↓ 1 callersMethod_create_actions
Create Burr actions from the base graph nodes. Returns: dict: A dictionary of Burr actions with the node name
scrapegraphai/integrations/burr_bridge.py:167
↓ 1 callersMethod_create_extraction_chain
Creates an extraction chain for processing the user prompt and generating the graph configuration. Returns: LLMC
scrapegraphai/builders/graph_builder.py:99
↓ 1 callersMethod_create_graph
Creates the graph of nodes representing the workflow for web scraping and searching. Returns: BaseGraph: A graph instanc
scrapegraphai/graphs/omni_search_graph.py:55
↓ 1 callersMethod_create_graph
Abstract method to create a graph representation.
scrapegraphai/graphs/abstract_graph.py:317
↓ 1 callersMethod_create_graph
Creates the graph of nodes representing the workflow for web scraping and searching. Returns: BaseGraph: A graph instanc
scrapegraphai/graphs/csv_scraper_multi_graph.py:57
↓ 1 callersMethod_create_llm
Creates an instance of the OpenAI class with the provided language model configuration. Returns: OpenAI: An instance of
scrapegraphai/builders/graph_builder.py:54
↓ 1 callersMethod_create_llm
Create a large language model instance based on the configuration provided. Args: llm_config (dict): Configuration param
scrapegraphai/graphs/abstract_graph.py:118
↓ 1 callersMethod_create_transitions
Create Burr transitions from the base graph edges. Returns: list: A list of tuples representing the transitions between
scrapegraphai/integrations/burr_bridge.py:182
↓ 1 callersMethod_evaluate_condition
Parses and evaluates the condition expression against the state. Args: state (dict): The current state of the graph.
scrapegraphai/nodes/conditional_node.py:86
↓ 1 callersMethod_execute_node
Executes a single node and returns execution information.
scrapegraphai/graphs/base_graph.py:198
↓ 1 callersMethod_execute_standard
Executes the graph by traversing nodes starting from the entry point using the standard method.
scrapegraphai/graphs/base_graph.py:236
↓ 1 callersMethod_fetch_url
Synchronously fetch a URL via the plasmate binary.
scrapegraphai/docloaders/plasmate.py:120
↓ 1 callersMethod_generate_nodes_description
Generates a string description of all available nodes and their arguments. Returns: str: A string description of all ava
scrapegraphai/builders/graph_builder.py:83
↓ 1 callersMethod_get_model_info
Extracts LLM and embedder model information from the node.
scrapegraphai/graphs/base_graph.py:157
↓ 1 callersMethod_get_next_node
Determines the next node to execute based on current node type and result.
scrapegraphai/graphs/base_graph.py:222
↓ 1 callersMethod_get_node_by_name
Returns a node instance by its name.
scrapegraphai/graphs/base_graph.py:126
↓ 1 callersMethod_get_schema
Extracts schema information from the node configuration.
scrapegraphai/graphs/base_graph.py:181
↓ 1 callersMethod_initialize_burr_app
Initialize a Burr application from the base graph. Args: initial_state (dict): The initial state of the Burr application
scrapegraphai/integrations/burr_bridge.py:122
↓ 1 callersMethod_is_image_url
(self, url)
scrapegraphai/nodes/search_link_node.py:67
↓ 1 callersMethod_is_language_url
(self, url)
scrapegraphai/nodes/search_link_node.py:73
↓ 1 callersMethod_is_potentially_irrelevant
(self, url)
scrapegraphai/nodes/search_link_node.py:86
↓ 1 callersMethod_is_same_domain
(self, url, domain)
scrapegraphai/nodes/search_link_node.py:58
↓ 1 callersMethod_is_valid_url
CHecks if the URL format is valid. Args: url (str): The URL to check. Returns: bool: True if the UR
scrapegraphai/nodes/parse_node.py:207
↓ 1 callersFunction_load_config
(config_location: str)
scrapegraphai/telemetry/telemetry.py:18
↓ 1 callersMethod_merge_dict
(self, items)
scrapegraphai/nodes/concat_answers_node.py:38
↓ 1 callersMethod_parse_input_keys
Parses the input keys expression to extract relevant keys from the state based on logical conditions. The expression can cont
scrapegraphai/nodes/base_node.py:136
↓ 1 callersFunction_schema_to_dict
(schema: Optional[Type[BaseModel]])
scrapegraphai/integrations/scrapegraph_py_compat.py:32
↓ 1 callersFunction_search_bing
Helper function for Bing search with improved error handling. Args: query (str): Search query max_results (int): Maximum num
scrapegraphai/utils/research_web.py:285
↓ 1 callersFunction_search_duckduckgo
Helper function for DuckDuckGo search using the ``ddgs`` package. The ``duckduckgo-search`` package was renamed to ``ddgs``; recent ``la
scrapegraphai/utils/research_web.py:246
↓ 1 callersFunction_search_searxng
Helper function for SearXNG search. Args: query (str): Search query max_results (int): Maximum number of results to return
scrapegraphai/utils/research_web.py:332
↓ 1 callersFunction_search_serper
Helper function for Serper search. Args: query (str): Search query max_results (int): Maximum number of results to return
scrapegraphai/utils/research_web.py:373
↓ 1 callersMethod_send_csv_response
Send CSV response.
tests/fixtures/mock_server/server.py:303
↓ 1 callersMethod_send_json_response
Send JSON response.
tests/fixtures/mock_server/server.py:289
↓ 1 callersFunction_send_telemetry_threaded
Send telemetry in a background daemon thread.
scrapegraphai/telemetry/telemetry.py:145
↓ 1 callersMethod_send_xml_response
Send XML response.
tests/fixtures/mock_server/server.py:296
↓ 1 callersMethod_serve_500
Serve 500 error.
tests/fixtures/mock_server/server.py:204
↓ 1 callersMethod_serve_csv_data
Serve CSV endpoint.
tests/fixtures/mock_server/server.py:184
↓ 1 callersMethod_serve_dynamic_content
Serve dynamically generated content.
tests/fixtures/mock_server/server.py:225
↓ 1 callersMethod_serve_home
Serve home page.
tests/fixtures/mock_server/server.py:64
↓ 1 callersMethod_serve_json_data
Serve JSON endpoint.
tests/fixtures/mock_server/server.py:149
↓ 1 callersMethod_serve_pagination
Serve paginated content.
tests/fixtures/mock_server/server.py:244
↓ 1 callersMethod_serve_products
Serve products page.
tests/fixtures/mock_server/server.py:85
↓ 1 callersMethod_serve_projects
Serve projects page.
tests/fixtures/mock_server/server.py:121
↓ 1 callersMethod_serve_rate_limited
Simulate rate limiting.
tests/fixtures/mock_server/server.py:211
↓ 1 callersMethod_serve_slow_response
Simulate a slow response.
tests/fixtures/mock_server/server.py:192
↓ 1 callersMethod_serve_xml_data
Serve XML endpoint.
tests/fixtures/mock_server/server.py:164
↓ 1 callersMethod_set_conditional_node_edges
Sets the true_node_name and false_node_name for each ConditionalNode.
scrapegraphai/graphs/base_graph.py:100
↓ 1 callersMethod_update_source_info
Updates source type and source information from FetchNode.
scrapegraphai/graphs/base_graph.py:130
↓ 1 callersMethod_validate_input_keys
Validates if the provided input keys meet the minimum length requirement. Args: input_keys (List[str]): The list of inpu
scrapegraphai/nodes/base_node.py:119
↓ 1 callersFunctionanalyze_content_with_scrapegraph
Analyze scraped content using ScrapegraphAI. Args: content (str): The scraped HTML or text content. Returns: dict: The
examples/extras/chromium_selenium.py:20
↓ 1 callersMethodappend_node
Adds a node to the graph. Args: node (BaseNode): The node instance to add to the graph.
scrapegraphai/graphs/base_graph.py:378
↓ 1 callersFunctionare_content_equal
Compares two dictionaries for semantic equality after normalization. Args: generated_result (Dict[str, Any]): The generated result d
scrapegraphai/utils/dict_content_compare.py:65
↓ 1 callersFunctioncreate_batch
Create and submit an OpenAI Batch API job. Args: client: An initialized OpenAI client. requests: List of BatchRequest objects to
scrapegraphai/utils/batch_api.py:113
↓ 1 callersMethodcreate_sandbox_and_execute
Creates a sandbox environment and executes the provided function code. Args: function_code (str): The code to be execute
scrapegraphai/nodes/generate_code_node.py:435
↓ 1 callersFunctioncrop_image
Crop an image using the specified coordinates. Parameters: image (PIL.Image): The image to be cropped. LEFT (int, optional):
scrapegraphai/utils/screenshot_scraping/screenshot_preparation.py:222
↓ 1 callersFunctiondetect_text
Detects and extracts text from a given image. Parameters: image (PIL Image): The input image to extract text from. la
scrapegraphai/utils/screenshot_scraping/text_detection.py:6
↓ 1 callersFunctiondo_login
()
examples/extras/authenticated_playwright.py:28
↓ 1 callersMethodexclusive_get_callback
Provides an exclusive callback for the LLM model in a thread-safe manner. Args: llm_model: The LLM model instance (e.g.,
scrapegraphai/utils/llm_callback_manager.py:37
↓ 1 callersMethodexecute
Execute the batch generation node. Takes multiple parsed documents and a user prompt, builds prompts for each document, and submits t
scrapegraphai/nodes/batch_generate_answer_node.py:144
↓ 1 callersMethodexecute
Executes the GenerateAnswerNode. Args: state (dict): The current state of the graph. The input keys will be used
scrapegraphai/nodes/generate_answer_node.py:118
↓ 1 callersFunctionexecution_focused_analysis
Analyzes the execution errors in the generated code and HTML code. Args: state (dict): Contains the 'generated_code', 'errors', 'htm
scrapegraphai/utils/code_error_analysis.py:159
↓ 1 callersFunctionexecution_focused_code_generation
Generates corrected code based on execution error analysis. Args: state (dict): Contains the 'generated_code'. analysis (str
scrapegraphai/utils/code_error_correction.py:139
↓ 1 callersMethodexecution_reasoning_loop
Executes the execution reasoning loop to ensure the generated code runs without errors. Args: state (dict): The current
scrapegraphai/nodes/generate_code_node.py:235
↓ 1 callersFunctionexport_to_csv
Export data to a CSV file. :param data: List of dictionaries containing the data to export :param filename: Name of the file to save the
scrapegraphai/utils/data_export.py:28
↓ 1 callersFunctionexport_to_json
Export data to a JSON file. :param data: List of dictionaries containing the data to export :param filename: Name of the file to save th
scrapegraphai/utils/data_export.py:16
↓ 1 callersFunctionfilter_pdf_links
Filter out PDF links from search results. Args: urls (List[str]): List of URLs Returns: List[str]: Filtered list of URL
scrapegraphai/utils/research_web.py:443
↓ 1 callersFunctionformat_proxy
Format proxy configuration into a string. Args: proxy_config: Proxy configuration as string, dict, or ProxyConfig Returns:
scrapegraphai/utils/research_web.py:419
↓ 1 callersMethodgenerate_initial_code
Generates the initial code based on the provided state. Args: state (dict): The current state of the reasoning process.
scrapegraphai/nodes/generate_code_node.py:335
↓ 1 callersFunctionget_batch_status
Get the current status of a batch job. Args: client: An initialized OpenAI client. batch_id: The batch ID returned by create_batc
scrapegraphai/utils/batch_api.py:167
↓ 1 callersMethodget_considered_urls
Returns the list of URLs considered during the search. Returns: List[str]: A list of URLs considered during the search.
scrapegraphai/graphs/search_graph.py:120
↓ 1 callersFunctionget_custom_callback
Function to get custom callback for LLM token usage statistics.
scrapegraphai/utils/custom_callback.py:150
↓ 1 callersMethodget_full_links
Converts relative URLs to full URLs based on the base URL. Filters out non-web links (mailto:, tel:, javascript:, etc.). Arg
scrapegraphai/nodes/fetch_node_level_k.py:165
← previousnext →101–200 of 904, ranked by callers