Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Merge branch 'main' into pre/beta
Federico Aguzzi8cb9646a4504
diff --cc CHANGELOG.mdindex 54d4f9d9,09629cf1..8f320431--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,17 -1,10 +1,22 @@@+## [1.27.0-beta.1](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.26.6-beta.1...v1.27.0-beta.1) (2024-10-16)+++### Features++* add conditional node structure to the smart_scraper_graph and implemented a structured way to check condition ([cacd9cd](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/cacd9cde004dace1a7dcc27981245632a78b95f3))+- ## [1.26.6-beta.1](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.26.5...v1.26.6-beta.1) (2024-10-14)++ ## [1.26.6](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.26.5...v1.26.6) (2024-10-18)+++## [1.26.6-beta.1](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.26.5...v1.26.6-beta.1) (2024-10-14)### Bug Fixes+* remove variable "max_result" not being used in the code ([e76a68a](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/e76a68a782e5bce48d421cb620d0b7bffa412918))++ * refactoring of gpt2 tokenizer ([44c3f9c](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/44c3f9c98939c44caa86dc582242819a7c6a0f80))++>>>>>>> main+## [1.26.5](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.26.4...v1.26.5) (2024-10-13)diff --cc pyproject.tomlindex be40f076,fec68549..46e533e0--- a/pyproject.toml+++ b/pyproject.toml@@@ -1,8 -1,8 +1,9 @@@[project]name = "scrapegraphai"-version = "1.26.6"+version = "1.27.0b1"++description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."authors = [{ name = "Marco Vinciguerra", email = "[email protected]" },diff --cc scrapegraphai/graphs/base_graph.pyindex d3a9cf85,45953b2f..74135108--- a/scrapegraphai/graphs/base_graph.py+++ b/scrapegraphai/graphs/base_graph.py@@@ -92,13 -92,8 +92,11 @@@ class BaseGraphoutgoing_edges = [(from_node, to_node) for from_node, to_node in self.raw_edges if from_node.node_name == node.node_name]if len(outgoing_edges) != 2:raise ValueError(f"ConditionalNode '{node.node_name}' must have exactly two outgoing edges.")- # Assign true_node_name and false_node_namenode.true_node_name = outgoing_edges[0][1].node_name- node.false_node_name = outgoing_edges[1][1].node_name+ try:+ node.false_node_name = outgoing_edges[1][1].node_name+ except:+ node.false_node_name = Nonedef _execute_standard(self, initial_state: dict) -> Tuple[dict, list]:"""