MCPcopy Create free account

hub / github.com/ScrapeGraphAI/Scrapegraph-ai / types & classes

Types & classes195 in github.com/ScrapeGraphAI/Scrapegraph-ai

↓ 79 callersClassChromiumLoader
Scrapes HTML pages from URLs using a (headless) instance of the Chromium web driver with proxy protection. Attributes: backend: The w
scrapegraphai/docloaders/chromium.py:13
↓ 39 callersClassSmartScraperGraph
SmartScraper is a scraping pipeline that automates the process of extracting information from web pages using a natural language model to
scrapegraphai/graphs/smart_scraper_graph.py:25
↓ 34 callersClassDummyBrowser
tests/test_chromium.py:261
↓ 29 callersClassBaseGraph
BaseGraph manages the execution flow of a graph composed of interconnected nodes. Attributes: nodes (list): A dictionary mapping eac
scrapegraphai/graphs/base_graph.py:18
↓ 21 callersClassFetchNode
A node responsible for fetching the HTML content of a specified URL and updating the graph's state with this content. It uses ChromiumLoader
scrapegraphai/nodes/fetch_node.py:19
↓ 20 callersClassDummyPW
tests/test_chromium.py:268
↓ 17 callersClassDummyContext
tests/test_chromium.py:257
↓ 17 callersClassDummyPage
tests/test_chromium.py:247
↓ 15 callersClassGenerateAnswerNode
Initializes the GenerateAnswerNode class. Args: input (str): The input data type for the node. output (List[str]): The outpu
scrapegraphai/nodes/generate_answer_node.py:30
↓ 13 callersClassScriptCreatorMultiGraph
ScriptCreatorMultiGraph is a scraping pipeline that scrapes a list of URLs generating web scraping scripts. It only requires a user promp
scrapegraphai/graphs/script_creator_multi_graph.py:17
↓ 12 callersClassParseNode
A node responsible for parsing HTML content from a document. The parsed content is split into chunks for further processing. This node e
scrapegraphai/nodes/parse_node.py:17
↓ 12 callersClassSearchGraph
SearchGraph is a scraping pipeline that searches the internet for answers to a given prompt. It only requires a user prompt to search the int
scrapegraphai/graphs/search_graph.py:17
↓ 12 callersClassTestGraph
tests/graphs/abstract_graph_test.py:78
↓ 11 callersClassGraphIteratorNode
A node responsible for instantiating and running multiple graph instances in parallel. It creates as many graph instances as the number of el
scrapegraphai/nodes/graph_iterator_node.py:16
↓ 10 callersClassMergeAnswersNode
A node responsible for merging the answers from multiple graph instances into a single answer. Attributes: llm_model: An instance of
scrapegraphai/nodes/merge_answers_node.py:21
↓ 9 callersClassJSONScraperGraph
JSONScraperGraph defines a scraping pipeline for JSON files. Attributes: prompt (str): The prompt for the graph. source (str
scrapegraphai/graphs/json_scraper_graph.py:14
↓ 8 callersClassCSVScraperMultiGraph
CSVScraperMultiGraph is a scraping pipeline that scrapes a list of URLs and generates answers to a given prompt. It only requires a user
scrapegraphai/graphs/csv_scraper_multi_graph.py:17
↓ 8 callersClassInvalidCorrectionStateError
Exception raised when state dictionary is missing required keys.
scrapegraphai/utils/code_error_correction.py:35
↓ 8 callersClassXMLScraperGraph
XMLScraperGraph is a scraping pipeline that extracts information from XML files using a natural language model to interpret and answer prompt
scrapegraphai/graphs/xml_scraper_graph.py:14
↓ 7 callersClassInvalidStateError
Exception raised when state dictionary is missing required keys.
scrapegraphai/utils/code_error_analysis.py:35
↓ 6 callersClassBatchJobInfo
Status information about a batch job.
scrapegraphai/utils/batch_api.py:88
↓ 6 callersClassBatchRequest
A single request within a batch submission.
scrapegraphai/utils/batch_api.py:29
↓ 6 callersClassOmniSearchGraph
OmniSearchGraph is a scraping pipeline that searches the internet for answers to a given prompt. It only requires a user prompt to search the
scrapegraphai/graphs/omni_search_graph.py:17
↓ 5 callersClassBatchGenerateAnswerNode
A node that generates answers using the OpenAI Batch API. Instead of making individual LLM calls for each document, this node collects all pr
scrapegraphai/nodes/batch_generate_answer_node.py:32
↓ 5 callersClassBatchResult
The result of a single request within a completed batch.
scrapegraphai/utils/batch_api.py:71
↓ 5 callersClassDepthSearchGraph
CodeGeneratorGraph is a script generator pipeline that generates the function extract_data(html: str) -> dict() for extracting the wanted
scrapegraphai/graphs/depth_search_graph.py:20
↓ 5 callersClassDummyGraph
tests/test_script_creator_multi_graph.py:17
↓ 5 callersClassSearchRequestError
Exception raised when search request fails.
scrapegraphai/utils/research_web.py:29
↓ 5 callersClassSmartScraperMultiGraph
SmartScraperMultiGraph is a scraping pipeline that scrapes a list of URLs and generates answers to a given prompt. It only requires a use
scrapegraphai/graphs/smart_scraper_multi_graph.py:17
↓ 5 callersClassWithoutDict
tests/utils/copy_utils_test.py:26
↓ 4 callersClassAnalysisError
Base exception for code analysis errors.
scrapegraphai/utils/code_error_analysis.py:29
↓ 4 callersClassBenchmarkResult
Results from a single benchmark run.
tests/fixtures/benchmarking.py:23
↓ 4 callersClassCSVScraperGraph
A class representing a graph for extracting information from CSV files. Attributes: prompt (str): The prompt used to generate an ans
scrapegraphai/graphs/csv_scraper_graph.py:14
↓ 4 callersClassCodeGenerationError
Base exception for code generation errors.
scrapegraphai/utils/code_error_correction.py:29
↓ 4 callersClassCodeGeneratorGraph
CodeGeneratorGraph is a script generator pipeline that generates the function extract_data(html: str) -> dict() for extracting the wanted
scrapegraphai/graphs/code_generator_graph.py:22
↓ 4 callersClassDummyLLM
tests/test_batch_api.py:319
↓ 4 callersClassDummyLogger
tests/test_generate_answer_node.py:24
↓ 4 callersClassScriptCreatorGraph
ScriptCreatorGraph defines a scraping pipeline for generating web scraping scripts. Attributes: prompt (str): The prompt for the gra
scrapegraphai/graphs/script_creator_graph.py:14
↓ 4 callersClassSmartScraperMultiLiteGraph
SmartScraperMultiLiteGraph is a scraping pipeline that scrapes a list of URLs and merge the content first and finally generates answers to a
scrapegraphai/graphs/smart_scraper_multi_lite_graph.py:17
↓ 3 callersClassDocumentScraperGraph
DocumentScraperGraph is a scraping pipeline that automates the process of extracting information from web pages using a natural language mode
scrapegraphai/graphs/document_scraper_graph.py:14
↓ 3 callersClassDummyClient
tests/test_batch_api.py:167
↓ 3 callersClassDummyDriver
tests/test_chromium.py:300
↓ 3 callersClassRobotsNode
A node responsible for checking if a website is scrapeable or not based on the robots.txt file. It uses a language model to determine if the
scrapegraphai/nodes/robots_node.py:16
↓ 3 callersClassSearchInternetNode
A node that generates a search query based on the user's input and searches the internet for relevant information. The node constructs a prom
scrapegraphai/nodes/search_internet_node.py:16
↓ 2 callersClassBenchmarkTracker
Track and analyze benchmark results.
tests/fixtures/benchmarking.py:52
↓ 2 callersClassCodeAnalysisState
Base model for code analysis state validation.
scrapegraphai/utils/code_error_analysis.py:41
↓ 2 callersClassConditionalNode
A node that determines the next step in the graph's execution flow based on the presence and content of a specified key in the graph's state.
scrapegraphai/nodes/conditional_node.py:12
↓ 2 callersClassCorrectionState
Base model for code correction state validation.
scrapegraphai/utils/code_error_correction.py:41
↓ 2 callersClassDummyChain
A dummy chain for simulating a chain's invoke behavior. Returns a successful answer in the expected format.
tests/test_generate_answer_node.py:152
↓ 2 callersClassDummyChatOllama
A dummy ChatOllama class to simulate ChatOllama behavior.
tests/test_generate_answer_node.py:238
↓ 2 callersClassDummyFileContent
tests/test_batch_api.py:206
↓ 2 callersClassDummyFiles
tests/test_batch_api.py:209
↓ 2 callersClassDummyGraph
tests/test_omni_search_graph.py:8
↓ 2 callersClassDummyLLMWithPipe
DummyLLM that supports the pipe '|' operator. When used in a chain with a PromptTemplate, the pipe operator returns self, simulating chain com
tests/test_generate_answer_node.py:59
↓ 2 callersClassDummySchema
tests/test_omni_search_graph.py:18
↓ 2 callersClassJSONScraperMultiGraph
JSONScraperMultiGraph is a scraping pipeline that scrapes a list of URLs and generates answers to a given prompt. It only requires a user
scrapegraphai/graphs/json_scraper_multi_graph.py:17
↓ 2 callersClassNormalObject
tests/utils/copy_utils_test.py:12
↓ 2 callersClassOmniScraperGraph
OmniScraper is a scraping pipeline that automates the process of extracting information from web pages using a natural language model to
scrapegraphai/graphs/omni_scraper_graph.py:15
↓ 2 callersClassPlasmateLoader
Fetches pages using Plasmate — a lightweight Rust browser engine that outputs Structured Object Model (SOM) instead of raw HTML. Advantages o
scrapegraphai/docloaders/plasmate.py:46
↓ 2 callersClassRAGNode
A node responsible for compressing the input tokens and storing the document in a vector database for retrieval. Relevant chunks are stored i
scrapegraphai/nodes/rag_node.py:10
↓ 2 callersClassSearchConfigError
Exception raised when search configuration is invalid.
scrapegraphai/utils/research_web.py:23
↓ 2 callersClassSearchLinkGraph
SearchLinkGraph is a scraping pipeline that automates the process of extracting information from web pages using a natural language model
scrapegraphai/graphs/search_link_graph.py:14
↓ 2 callersClassSearchLinkNode
A node that can filter out the relevant links in the webpage content for the user prompt. Node expects the already scrapped links on the webp
scrapegraphai/nodes/search_link_node.py:18
↓ 2 callersClassSmartScraperLiteGraph
SmartScraperLiteGraph is a scraping pipeline that automates the process of extracting information from web pages. Attributes: pr
scrapegraphai/graphs/smart_scraper_lite_graph.py:14
↓ 2 callersClassSmartScraperMultiBatchGraph
A scraping pipeline that uses OpenAI Batch API for cost savings. Similar to SmartScraperMultiGraph, but instead of making individual LLM call
scrapegraphai/graphs/smart_scraper_multi_batch_graph.py:76
↓ 2 callersClassSmartScraperMultiConcatGraph
SmartScraperMultiConditionalGraph is a scraping pipeline that scrapes a list of URLs and generates answers to a given prompt. Attributes
scrapegraphai/graphs/smart_scraper_multi_concat_graph.py:22
↓ 2 callersClassXMLScraperMultiGraph
XMLScraperMultiGraph is a scraping pipeline that scrapes a list of URLs and generates answers to a given prompt. It only requires a user
scrapegraphai/graphs/xml_scraper_multi_graph.py:17
↓ 1 callersClassBenchmarkSummary
Summary statistics for multiple benchmark runs.
tests/fixtures/benchmarking.py:37
↓ 1 callersClassBurrBridge
Bridge class to integrate Burr into ScrapeGraphAI graphs. Args: base_graph (BaseGraph): The base graph to convert to a Burr applicat
scrapegraphai/integrations/burr_bridge.py:93
↓ 1 callersClassBurrNodeBridge
Bridge class to convert a base graph node to a Burr action. This is nice because we can dynamically declare the inputs/outputs (and not rely o
scrapegraphai/integrations/burr_bridge.py:45
↓ 1 callersClassCLoD
A wrapper for the ChatOpenAI class (CLōD uses an OpenAI-like API) that provides default configuration and could be extended with additional m
scrapegraphai/models/clod.py:8
↓ 1 callersClassConcatAnswersNode
A node responsible for concatenating the answers from multiple graph instances into a single answer. Attributes: verbose (bool):
scrapegraphai/nodes/concat_answers_node.py:10
↓ 1 callersClassCustomCallbackHandler
Callback Handler that tracks LLMs info.
scrapegraphai/utils/custom_callback.py:43
↓ 1 callersClassCustomLLMCallbackManager
CustomLLMCallbackManager class provides a mechanism to acquire a callback for LLM models in an exclusive, thread-safe manner. Attributes
scrapegraphai/utils/llm_callback_manager.py:21
↓ 1 callersClassDeepCopyError
Custom exception raised when an object cannot be deep-copied.
scrapegraphai/utils/copy.py:9
↓ 1 callersClassDeepSeek
A wrapper for the ChatOpenAI class (DeepSeek uses an OpenAI-like API) that provides default configuration and could be extended with addition
scrapegraphai/models/deepseek.py:8
↓ 1 callersClassDescriptionNode
A node responsible for compressing the input tokens and storing the document in a vector database for retrieval. Relevant chunks are stored i
scrapegraphai/nodes/description_node.py:15
↓ 1 callersClassDummyBaseGraph
Dummy BaseGraph to test _create_graph method without side effects.
tests/test_csv_scraper_multi_graph.py:31
↓ 1 callersClassDummyGraph
Dummy graph that returns a predefined answer.
tests/test_csv_scraper_multi_graph.py:12
↓ 1 callersClassDummyGraphCapture
tests/test_csv_scraper_multi_graph.py:123
↓ 1 callersClassDummyGraphException
tests/test_csv_scraper_multi_graph.py:149
↓ 1 callersClassDummyGraphNoAnswer
Dummy graph that simulates absence of answer in final_state.
tests/test_csv_scraper_multi_graph.py:23
↓ 1 callersClassDummyLLM
tests/test_generate_answer_node.py:19
↓ 1 callersClassDummyLogger
tests/test_batch_api.py:331
↓ 1 callersClassDummySchema
A dummy schema class with a model_json_schema method.
tests/test_generate_answer_node.py:242
↓ 1 callersClassExceptionGraph
tests/test_script_creator_multi_graph.py:173
↓ 1 callersClassExecutionAnalysisState
Model for execution analysis state validation.
scrapegraphai/utils/code_error_analysis.py:57
↓ 1 callersClassFetchNodeLevelK
A node responsible for fetching the HTML content of a specified URL and all its sub-links recursively up to a certain level of hyperlink the
scrapegraphai/nodes/fetch_node_level_k.py:15
↓ 1 callersClassFetchScreenNode
FetchScreenNode captures screenshots from a given URL and stores the image data as bytes.
scrapegraphai/nodes/fetch_screen_node.py:12
↓ 1 callersClassGenerateAnswerCSVNode
A node that generates an answer using a language model (LLM) based on the user's input and the content extracted from a webpage. It construct
scrapegraphai/nodes/generate_answer_csv_node.py:22
↓ 1 callersClassGenerateAnswerFromImageNode
GenerateAnswerFromImageNode analyzes images from the state dictionary using the OpenAI API and updates the state with the consolidated answer
scrapegraphai/nodes/generate_answer_from_image_node.py:14
↓ 1 callersClassGenerateAnswerNodeKLevel
A node responsible for compressing the input tokens and storing the document in a vector database for retrieval. Relevant chunks are stored i
scrapegraphai/nodes/generate_answer_node_k_level.py:31
↓ 1 callersClassGenerateAnswerOmniNode
A node that generates an answer using a large language model (LLM) based on the user's input and the content extracted from a webpage. It con
scrapegraphai/nodes/generate_answer_omni_node.py:27
↓ 1 callersClassGenerateCodeNode
A node that generates Python code for a function that extracts data from HTML based on a output schema. Attributes: llm_model: A
scrapegraphai/nodes/generate_code_node.py:37
↓ 1 callersClassGenerateScraperNode
Generates a python script for scraping a website using the specified library. It takes the user's prompt and the scraped content as input and
scrapegraphai/nodes/generate_scraper_node.py:13
↓ 1 callersClassHtmlAnalyzerNode
A node that generates an analysis of the provided HTML code based on the wanted infromations to be extracted. Attributes: llm_model:
scrapegraphai/nodes/html_analyzer_node.py:16
↓ 1 callersClassImageToTextNode
Retrieve images from a list of URLs and return a description of the images using an image-to-text model. Attributes: llm_model:
scrapegraphai/nodes/image_to_text_node.py:12
↓ 1 callersClassMarkdownifyNode
A node responsible for converting HTML content to Markdown format. This node takes HTML content from the state and converts it to clean, rea
scrapegraphai/nodes/markdownify_node.py:11
↓ 1 callersClassMergeGeneratedScriptsNode
A node responsible for merging scripts generated. Attributes: llm_model: An instance of a language model client, configured for gener
scrapegraphai/nodes/merge_generated_scripts_node.py:14
↓ 1 callersClassMiniMax
A wrapper for the ChatOpenAI class (MiniMax uses an OpenAI-compatible API) that provides default configuration and could be extended with add
scrapegraphai/models/minimax.py:8
next →1–100 of 195, ranked by callers