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
Marco Vinciguerra7f0e1d2eac15
diff --cc CHANGELOG.mdindex daf30414,b7755a76..a455f231--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,9 -1,9 +1,8 @@@+## [1.32.0-beta.5](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.32.0-beta.4...v1.32.0-beta.5) (2024-12-02)+ ## [1.32.0](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.31.1...v1.32.0) (2024-12-02)--### Features- * add API integration ([ba6e931](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/ba6e931caf5f3d4a3b9c31ec4655fe7a9f0e214c))-* add API integration ([46373af](https://github.com/ScrapeGraphAI/Scrapegraph-ai/commit/46373afe6d8c05ad26039e68190f13d82b20a349))## [1.32.0-beta.4](https://github.com/ScrapeGraphAI/Scrapegraph-ai/compare/v1.32.0-beta.3...v1.32.0-beta.4) (2024-12-02)diff --cc pyproject.tomlindex 536048b1,0034235d..1cd4a7b5--- a/pyproject.toml+++ b/pyproject.toml@@@ -3,10 -3,10 +3,11 @@@ name = "scrapegraphai-version = "1.32.0"+version = "1.32.0b5"++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/docloaders/chromium.pyindex c0c47929,3cc49e7f..255fc3c2--- a/scrapegraphai/docloaders/chromium.py+++ b/scrapegraphai/docloaders/chromium.py@@@ -132,12 -125,10 +132,12 @@@ class ChromiumLoader(BaseLoader)attempt += 1logger.error(f"Attempt {attempt} failed: {e}")if attempt == self.RETRY_LIMIT:- raise RuntimeError(f"Failed to fetch {url} after {self.RETRY_LIMIT} attempts: {e}")+ raise RuntimeError(+ f"Failed to fetch {url} after {self.RETRY_LIMIT} attempts: {e}"+ )finally:- if 'browser' in locals():- await browser.close()+ if "browser" in locals():- await browser.close()++async def ascrape_with_js_support(self, url: str) -> str:"""diff --cc scrapegraphai/graphs/smart_scraper_graph.pyindex a9c298bc,340f69bb..f7ce5dde--- a/scrapegraphai/graphs/smart_scraper_graph.py+++ b/scrapegraphai/graphs/smart_scraper_graph.py@@@ -16,10 -15,9 +16,9 @@@ from ..nodes importfrom ..prompts import REGEN_ADDITIONAL_INFOfrom scrapegraph_py import SyncClient-class SmartScraperGraph(AbstractGraph):"""- SmartScraper is a scraping pipeline that automates the process of+ SmartScraper is a scraping pipeline that automates the process ofextracting information from web pagesusing a natural language model to interpret and answer prompts.