Skip to content

Python scraper based on AI

add new readme

Marco Vinciguerra909a0c9873ec
diff --git a/README.md b/README.md
index c5657d78..78fb5f00 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
| [Deutsch](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=de)
| [Español](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=es)
| [français](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=fr)
-| [Português](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=pt)
+| [Português](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/portuguese.md)
[![PyPI Downloads](https://static.pepy.tech/personalized-badge/scrapegraphai?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/scrapegraphai)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen?style=for-the-badge)](https://github.com/pylint-dev/pylint)
diff --git a/docs/README.md b/docs/README.md
deleted file mode 100644
index 598580fc..00000000
--- a/docs/README.md
+++ /dev/null
@@ -1,63 +0,0 @@
----
-title: ScrapGraphAI Roadmap
-markmap:
- colorFreezeLevel: 2
- maxWidth: 500
----
-
-# **ScrapGraphAI Roadmap**
-
-## **Short-Term Goals**
-
-- Improve the documentation (ReadTheDocs)
- - [Issue #102](https://github.com/VinciGit00/Scrapegraph-ai/issues/102)
-
-- Create tutorials for the library
-
-## **Medium-Term Goals**
-
-- Node for handling API requests
-- Make scraping more deterministic
- - Create DOM tree of the website
- - HTML tag text embeddings with tags metadata
- - Study tree forks from root node
- - How do we use the tags parameters?
-
-- Create scraping folder with report
- - Folder contains .scrape files, DOM tree files, report
- - Report could be a HTML page with scraping speed, costs, LLM info, scraped content and DOM tree visualization
- - We can use pyecharts with R-markdown
-
-- Scrape multiple pages of the same website
- - Create new node that instantiate multiple graphs at the same time
- - Make graphs run in parallel
- - Scrape only relevant URLs from user prompt
- - Use the multi dimensional DOM tree of the website for retrieval
-
-- Crawler graph
- - Scrape all the URLs with the same domain in all the pages
- - Build many DOM trees and link them together
- - Save the multi dimensional tree in a file
-
-- Compare two DOM trees to assess the similarity
- - Save the DOM tree of the scraped website in a file as a sort of cache to be used to compare with future website structure
- - Create similarity metrics with multiple DOM trees (overall tree? only relevant tags structure?)
-
-- Nodes for handling authentication
- - Use Selenium or Playwright to handle authentication
- - Passes the cookies to the other nodes
-
-- Nodes that attaches to an open browser
- - Use Selenium or Playwright to attach to an open browser
- - Navigate inside the browser and scrape the content
-
-- Nodes for taking screenshots and understanding the page layout
- - Use Selenium or Playwright to take screenshots
- - Use LLM to asses if it is a block-like page, paragraph-like page, etc.
- - [Issue #88](https://github.com/VinciGit00/Scrapegraph-ai/issues/88)
-
-## **Long-Term Goals**
-
-- Automatic generation of scraping pipelines from a given prompt
-
-- Create API for the library
diff --git a/docs/chinese.md b/docs/chinese.md
index 9eb6b73e..0fbbd7ca 100644
--- a/docs/chinese.md
+++ b/docs/chinese.md
@@ -1,12 +1,31 @@
+## 🚀 **正在寻找更快、更简单的规模化抓取方式(只需5行代码)?** 查看我们在 [**ScrapeGraphAI.com**](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=oss_cta&utm_content=top_banner) 的增强版本!🚀
+
+---
+
# 🕷️ ScrapeGraphAI: 只需抓取一次
-[![Downloads](https://img.shields.io/pepy/dt/scrapegraphai?style=for-the-badge)](https://pepy.tech/project/scrapegraphai)
+
+[English](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/README.md) | [中文](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/chinese.md) | [日本語](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/japanese.md)
+| [한국어](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/korean.md)
+| [Русский](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/russian.md) | [Türkçe](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/turkish.md)
+| [Deutsch](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=de)
+| [Español](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=es)
+| [français](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=fr)
+| [Português](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/portuguese.md)
+
+[![PyPI Downloads](https://static.pepy.tech/personalized-badge/scrapegraphai?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/scrapegraphai)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen?style=for-the-badge)](https://github.com/pylint-dev/pylint)
-[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/pylint.yml?style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/pylint.yml)
-[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
+[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/code-quality.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/code-quality.yml)
+[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?label=CodeQL&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![](https://dcbadge.vercel.app/api/server/gkxQDAjfeX)](https://discord.gg/gkxQDAjfeX)
-ScrapeGraphAI 是一个*网络爬虫* Python 库,使用大型语言模型和直接图逻辑为网站和本地文档(XML,HTML,JSON 等)创建爬取管道。
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=api_banner&utm_content=api_banner_image)
+
+<p align="center">
+<a href="https://trendshift.io/repositories/9761" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9761" alt="VinciGit00%2FScrapegraph-ai | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+<p align="center">
+
+[ScrapeGraphAI](https://scrapegraphai.com) 是一个*网络爬虫* Python 库,使用大型语言模型和直接图逻辑为网站和本地文档(XML,HTML,JSON,Markdown 等)创建爬取管道。
只需告诉库您想提取哪些信息,它将为您完成!
@@ -14,160 +33,134 @@ ScrapeGraphAI 是一个*网络爬虫* Python 库,使用大型语言模型和
<img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;">
</p>
-## 🚀 快速安装
-Scrapegraph-ai 的参考页面可以在 PyPI 的官方网站上找到: [pypi](https://pypi.org/project/scrapegraphai/)。
-
-```bash
-pip install scrapegraphai
-```
-**注意**: 建议在虚拟环境中安装该库,以避免与其他库发生冲突 🐱
+## 🚀 集成
+ScrapeGraphAI 提供与流行框架和工具的无缝集成,以增强您的抓取能力。无论您使用 Python 还是 Node.js 构建,使用 LLM 框架,还是使用无代码平台,我们都为您提供全面的集成选项。
-## 🔍 演示
+您可以在以下[链接](https://scrapegraphai.com)找到更多信息
-官方 Streamlit 演示:
+**集成**:
+- **API**: [文档](https://docs.scrapegraphai.com/introduction)
+- **SDKs**: [Python](https://docs.scrapegraphai.com/sdks/python), [Node](https://docs.scrapegraphai.com/sdks/javascript)
+- **LLM 框架**: [Langchain](https://docs.scrapegraphai.com/integrations/langchain), [Llama Index](https://docs.scrapegraphai.com/integrations/llamaindex), [Crew.ai](https://docs.scrapegraphai.com/integrations/crewai), [Agno](https://docs.scrapegraphai.com/integrations/agno), [CamelAI](https://github.com/camel-ai/camel)
+- **低代码框架**: [Pipedream](https://pipedream.com/apps/scrapegraphai), [Bubble](https://bubble.io/plugin/scrapegraphai-1745408893195x213542371433906180), [Zapier](https://zapier.com/apps/scrapegraphai/integrations), [n8n](http://localhost:5001/dashboard), [Dify](https://dify.ai), [Toolhouse](https://app.toolhouse.ai/mcp-servers/scrapegraph_smartscraper)
+- **MCP 服务器**: [链接](https://smithery.ai/server/@ScrapeGraphAI/scrapegraph-mcp)
-[![My Skills](https://skillicons.dev/icons?i=react)](https://scrapegraph-ai-web-dashboard.streamlit.app)
+## 🚀 快速安装
-在 Google Colab 上直接尝试:
+Scrapegraph-ai 的参考页面可以在 PyPI 的官方网站上找到: [pypi](https://pypi.org/project/scrapegraphai/)。
-[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
+```bash
+pip install scrapegraphai
-## 📖 文档
+# 重要(用于获取网站内容)
+playwright install
+```
-ScrapeGraphAI 的文档可以在[这里](https://scrapegraph-ai.readthedocs.io/en/latest/)找到。
+**注意**: 建议在虚拟环境中安装该库,以避免与其他库发生冲突 🐱
-还可以查看 Docusaurus 的[版本](https://scrapegraph-doc.onrender.com/)。
## 💻 用法
+有多种标准抓取管道可用于从网站(或本地文件)提取信息。
-有三种主要的爬取管道可用于从网站(或本地文件)提取信息:
+最常见的是 `SmartScraperGraph`,它在给定用户提示和源 URL 的情况下从单个页面提取信息。
-- `SmartScraperGraph`: 单页爬虫,只需用户提示和输入源;
-- `SearchGraph`: 多页爬虫,从搜索引擎的前 n 个搜索结果中提取信息;
-- `SpeechGraph`: 单页爬虫,从网站提取信息并生成音频文件。
-- `SmartScraperMultiGraph`: 多页爬虫,给定一个提示
-可以通过 API 使用不同的 LLM,如 **OpenAI**,**Groq**,**Azure** 和 **Gemini**,或者使用 **Ollama** 的本地模型。
-### 案例 1: 使用本地模型的 SmartScraper
-请确保已安装 [Ollama](https://ollama.com/) 并使用 `ollama pull` 命令下载模型。
-
-``` python
+```python
from scrapegraphai.graphs import SmartScraperGraph
+# 定义抓取管道的配置
graph_config = {
"llm": {
- "model": "ollama/mistral",
- "temperature": 0,
- "format": "json", # Ollama 需要显式指定格式
- "base_url": "http://localhost:11434", # 设置 Ollama URL
- },
- "embeddings": {
- "model": "ollama/nomic-embed-text",
- "base_url": "http://localhost:11434", # 设置 Ollama URL
+ "model": "ollama/llama3.2",
+ "model_tokens": 8192,
+ "format": "json",
},
"verbose": True,
+ "headless": False,
}
+# 创建 SmartScraperGraph 实例
smart_scraper_graph = SmartScraperGraph(
- prompt="List me all the projects with their descriptions",
- # 也接受已下载的 HTML 代码的字符串
- source="https://perinim.github.io/projects",
+ prompt="从网页中提取有用信息,包括公司描述、创始人和社交媒体链接",
+ source="https://scrapegraphai.com/",
config=graph_config
)
+# 运行管道
result = smart_scraper_graph.run()
-print(result)
-```
-输出将是一个包含项目及其描述的列表,如下所示:
-
-```python
-{'projects': [{'title': 'Rotary Pendulum RL', 'description': 'Open Source project aimed at controlling a real life rotary pendulum using RL algorithms'}, {'title': 'DQN Implementation from scratch', 'description': 'Developed a Deep Q-Network algorithm to train a simple and double pendulum'}, ...]}
+import json
+print(json.dumps(result, indent=4))
```
-### 案例 2: 使用混合模型的 SearchGraph
-我们使用 **Groq** 作为 LLM,使用 **Ollama** 作为嵌入模型。
+> [!NOTE]
+> 对于 OpenAI 和其他模型,您只需要更改 llm 配置!
+> ```python
+>graph_config = {
+> "llm": {
+> "api_key": "YOUR_OPENAI_API_KEY",
+> "model": "openai/gpt-4o-mini",
+> },
+> "verbose": True,
+> "headless": False,
+>}
+>```
-```python
-from scrapegraphai.graphs import SearchGraph
-# 定义图的配置
-graph_config = {
- "llm": {
- "model": "groq/gemma-7b-it",
- "api_key": "GROQ_API_KEY",
- "temperature": 0
- },
- "embeddings": {
- "model": "ollama/nomic-embed-text",
- "base_url": "http://localhost:11434", # 任意设置 Ollama URL
- },
- "max_results": 5,
-}
-
-# 创建 SearchGraph 实例
-search_graph = SearchGraph(
- prompt="List me all the traditional recipes from Chioggia",
- config=graph_config
-)
-
-# 运行图
-result = search_graph.run()
-print(result)
-```
-
-输出将是一个食谱列表,如下所示:
+输出将是一个类似以下的字典:
```python
-{'recipes': [{'name': 'Sarde in Saòre'}, {'name': 'Bigoli in salsa'}, {'name': 'Seppie in umido'}, {'name': 'Moleche frite'}, {'name': 'Risotto alla pescatora'}, {'name': 'Broeto'}, {'name': 'Bibarasse in Cassopipa'}, {'name': 'Risi e bisi'}, {'name': 'Smegiassa Ciosota'}]}
+{
+ "description": "ScrapeGraphAI transforms websites into clean, organized data for AI agents and data analytics. It offers an AI-powered API for effortless and cost-effective data extraction.",
+ "founders": [
+ {
+ "name": "",
+ "role": "Founder & Technical Lead",
+ "linkedin": "https://www.linkedin.com/in/perinim/"
+ },
+ {
+ "name": "Marco Vinciguerra",
+ "role": "Founder & Software Engineer",
+ "linkedin": "https://www.linkedin.com/in/marco-vinciguerra-7ba365242/"
+ },
+ {
+ "name": "Lorenzo Padoan",
+ "role": "Founder & Product Engineer",
+ "linkedin": "https://www.linkedin.com/in/lorenzo-padoan-4521a2154/"
+ }
+ ],
+ "social_media_links": {
+ "linkedin": "https://www.linkedin.com/company/101881123",
+ "twitter": "https://x.com/scrapegraphai",
+ "github": "https://github.com/ScrapeGraphAI/Scrapegraph-ai"
+ }
+}
```
+还有其他管道可用于从多个页面提取信息、生成 Python 脚本,甚至生成音频文件。
-### 案例 3: 使用 OpenAI 的 SpeechGraph
+| 管道名称 | 描述 |
+|-------------------------|------------------------------------------------------------------------------------------------------------------|
+| SmartScraperGraph | 单页抓取器,只需要用户提示和输入源。 |
+| SearchGraph | 多页抓取器,从搜索引擎的前 n 个搜索结果中提取信息。 |
+| SpeechGraph | 单页抓取器,从网站提取信息并生成音频文件。 |
+| ScriptCreatorGraph | 单页抓取器,从网站提取信息并生成 Python 脚本。 |
+| SmartScraperMultiGraph | 多页抓取器,在给定单个提示和源列表的情况下从多个页面提取信息。 |
+| ScriptCreatorMultiGraph | 多页抓取器,生成用于从多个页面和源提取信息的 Python 脚本。 |
-您只需传递 OpenAI API 密钥和模型名称。
+对于这些图中的每一个,都有多版本。它允许并行调用 LLM。
-```python
-from scrapegraphai.graphs import SpeechGraph
-
-graph_config = {
- "llm": {
- "api_key": "OPENAI_API_KEY",
- "model": "openai/gpt-3.5-turbo",
- },
- "tts_model": {
- "api_key": "OPENAI_API_KEY",
- "model": "tts-1",
- "voice": "alloy"
- },
- "output_path": "audio_summary.mp3",
-}
+可以通过 API 使用不同的 LLM,例如 **OpenAI**、**Groq**、**Azure** 和 **Gemini**,或使用 **Ollama** 的本地模型。
-# ************************************************
-# 创建 SpeechGraph 实例并运行
-# ************************************************
+如果您想使用本地模型,请记住安装 [Ollama](https://ollama.com/) 并使用 **ollama pull** 命令下载模型。
-speech_graph = SpeechGraph(
- prompt="Make a detailed audio summary of the projects.",
- source="https://perinim.github.io/projects/",
- config=graph_config,
-)
-result = speech_graph.run()
-print(result)
-```
-输出将是一个包含页面上项目摘要的音频文件。
+## 📖 文档
-## 赞助商
+[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
-<div style="text-align: center;">
- <a href="https://serpapi.com?utm_source=scrapegraphai">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/serp_api_logo.png" alt="SerpAPI" style="width: 10%;">
- </a>
- <a href="https://dashboard.statproxies.com/?refferal=scrapegraph">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/transparent_stat.png" alt="Stats" style="width: 15%;">
- </a>
-</div>
+ScrapeGraphAI 的文档可以在[这里](https://scrapegraph-ai.readthedocs.io/en/latest/)找到。
+还可以查看 Docusaurus [这里](https://docs-oss.scrapegraphai.com/)。
## 🤝 贡献
@@ -179,23 +172,37 @@ print(result)
[![My Skills](https://skillicons.dev/icons?i=linkedin)](https://www.linkedin.com/company/scrapegraphai/)
[![My Skills](https://skillicons.dev/icons?i=twitter)](https://twitter.com/scrapegraphai)
+## 🔗 ScrapeGraph API & SDKs
+如果您正在寻找快速解决方案来将 ScrapeGraph 集成到您的系统中,请查看我们的强大 API [这里!](https://dashboard.scrapegraphai.com/login)
+
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://dashboard.scrapegraphai.com/login)
+
+我们提供 Python 和 Node.js 的 SDK,使您可以轻松集成到您的项目中。请在下面查看:
+
+| SDK | 语言 | GitHub 链接 |
+|-----------|----------|-----------------------------------------------------------------------------|
+| Python SDK | Python | [scrapegraph-py](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-py) |
+| Node.js SDK | Node.js | [scrapegraph-js](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-js) |
+
+官方 API 文档可以在[这里](https://docs.scrapegraphai.com/)找到。
-## 📈 路线图
+## 🔥 基准测试
-在[这里](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/README.md)查看项目路线图! 🚀
+根据 Firecrawl 基准测试 [Firecrawl benchmark](https://github.com/firecrawl/scrape-evals/pull/3),ScrapeGraph 是市场上最好的抓取工具!
-想要以更互动的方式可视化路线图?请查看 [markmap](https://markmap.js.org/repl) 通过将 markdown 内容复制粘贴到编辑器中进行可视化!
+![here](assets/histogram.png)
+
+## 📈 遥测
+我们收集匿名使用指标以增强我们包的质量和用户体验。这些数据帮助我们确定改进的优先级并确保兼容性。如果您希望退出,请设置环境变量 SCRAPEGRAPHAI_TELEMETRY_ENABLED=false。有关更多信息,请参阅[这里](https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/telemetry.html)的文档。
## ❤️ 贡献者
[![Contributors](https://contrib.rocks/image?repo=VinciGit00/Scrapegraph-ai)](https://github.com/VinciGit00/Scrapegraph-ai/graphs/contributors)
-
## 🎓 引用
-
-如果您将我们的库用于研究目的,请引用以下参考文献:
+如果您将我们的库用于研究目的,请使用以下参考文献引用我们:
```text
@misc{scrapegraph-ai,
- author = {, Lorenzo Padoan, Marco Vinciguerra},
+ author = {Lorenzo Padoan, Marco Vinciguerra},
title = {Scrapegraph-ai},
year = {2024},
url = {https://github.com/VinciGit00/Scrapegraph-ai},
@@ -204,15 +211,9 @@ print(result)
```
## 作者
-<p align="center">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/logo_authors.png" alt="Authors_logos">
-</p>
-
-## 联系方式
-| | Contact Info |
+| | 联系信息 |
|--------------------|----------------------|
| Marco Vinciguerra | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/marco-vinciguerra-7ba365242/) |
-| | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/perinim/) |
| Lorenzo Padoan | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/lorenzo-padoan-4521a2154/) |
## 📜 许可证
@@ -223,3 +224,7 @@ ScrapeGraphAI 采用 MIT 许可证。更多信息请查看 [LICENSE](https://git
- 我们要感谢所有项目贡献者和开源社区的支持。
- ScrapeGraphAI 仅用于数据探索和研究目的。我们不对任何滥用该库的行为负责。
+
+Made with ❤️ by [ScrapeGraph AI](https://scrapegraphai.com)
+
+[Scarf tracking](https://static.scarf.sh/a.png?x-pxid=102d4b8c-cd6a-4b9e-9a16-d6d141b9212d)
diff --git a/docs/japanese.md b/docs/japanese.md
index 1b4a911f..d975f918 100644
--- a/docs/japanese.md
+++ b/docs/japanese.md
@@ -1,12 +1,31 @@
+## 🚀 **さらに高速でシンプルな大規模スクレイピング方法(わずか5行のコード)をお探しですか?** [**ScrapeGraphAI.com**](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=oss_cta&utm_content=top_banner) の拡張版をご覧ください!🚀
+
+---
+
# 🕷️ ScrapeGraphAI: 一度のクロールで完結
-[![Downloads](https://img.shields.io/pepy/dt/scrapegraphai?style=for-the-badge)](https://pepy.tech/project/scrapegraphai)
+
+[English](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/README.md) | [中文](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/chinese.md) | [日本語](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/japanese.md)
+| [한국어](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/korean.md)
+| [Русский](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/russian.md) | [Türkçe](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/turkish.md)
+| [Deutsch](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=de)
+| [Español](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=es)
+| [français](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=fr)
+| [Português](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/portuguese.md)
+
+[![PyPI Downloads](https://static.pepy.tech/personalized-badge/scrapegraphai?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/scrapegraphai)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen?style=for-the-badge)](https://github.com/pylint-dev/pylint)
-[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/pylint.yml?style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/pylint.yml)
-[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
+[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/code-quality.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/code-quality.yml)
+[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?label=CodeQL&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![](https://dcbadge.vercel.app/api/server/gkxQDAjfeX)](https://discord.gg/gkxQDAjfeX)
-ScrapeGraphAIは、大規模言語モデルと直接グラフロジックを使用して、ウェブサイトやローカルドキュメント(XML、HTML、JSONなど)のクローリングパイプラインを作成するPythonライブラリです。
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=api_banner&utm_content=api_banner_image)
+
+<p align="center">
+<a href="https://trendshift.io/repositories/9761" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9761" alt="VinciGit00%2FScrapegraph-ai | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+<p align="center">
+
+ScrapeGraphAIは、大規模言語モデルと直接グラフロジックを使用して、ウェブサイトやローカルドキュメント(XML、HTML、JSON、Markdownなど)のクローリングパイプラインを作成するPythonライブラリです。
クロールしたい情報をライブラリに伝えるだけで、残りはすべてライブラリが行います!
@@ -14,160 +33,134 @@ ScrapeGraphAIは、大規模言語モデルと直接グラフロジックを使
<img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;">
</p>
-## 🚀 インストール方法
-Scrapegraph-aiの参照ページはPyPIの公式サイトで見ることができます: [pypi](https://pypi.org/project/scrapegraphai/)。
+## 🚀 統合
+ScrapeGraphAIは、人気のあるフレームワークやツールとのシームレスな統合を提供し、スクレイピング機能を強化します。PythonまたはNode.jsで構築する場合でも、LLMフレームワークを使用する場合でも、ノーコードプラットフォームで作業する場合でも、包括的な統合オプションを提供しています。
-```bash
-pip install scrapegraphai
-```
-**注意**: 他のライブラリとの競合を避けるため、このライブラリは仮想環境でのインストールを推奨します 🐱
+詳細情報は以下の[リンク](https://scrapegraphai.com)で確認できます
-## 🔍 デモ
+**統合**:
+- **API**: [ドキュメント](https://docs.scrapegraphai.com/introduction)
+- **SDKs**: [Python](https://docs.scrapegraphai.com/sdks/python), [Node](https://docs.scrapegraphai.com/sdks/javascript)
+- **LLMフレームワーク**: [Langchain](https://docs.scrapegraphai.com/integrations/langchain), [Llama Index](https://docs.scrapegraphai.com/integrations/llamaindex), [Crew.ai](https://docs.scrapegraphai.com/integrations/crewai), [Agno](https://docs.scrapegraphai.com/integrations/agno), [CamelAI](https://github.com/camel-ai/camel)
+- **ローコードフレームワーク**: [Pipedream](https://pipedream.com/apps/scrapegraphai), [Bubble](https://bubble.io/plugin/scrapegraphai-1745408893195x213542371433906180), [Zapier](https://zapier.com/apps/scrapegraphai/integrations), [n8n](http://localhost:5001/dashboard), [Dify](https://dify.ai), [Toolhouse](https://app.toolhouse.ai/mcp-servers/scrapegraph_smartscraper)
+- **MCPサーバー**: [リンク](https://smithery.ai/server/@ScrapeGraphAI/scrapegraph-mcp)
-公式のStreamlitデモ:
+## 🚀 クイックインストール
-[![My Skills](https://skillicons.dev/icons?i=react)](https://scrapegraph-ai-web-dashboard.streamlit.app)
-
-Google Colabで直接試す:
+Scrapegraph-aiの参照ページはPyPIの公式サイトで見ることができます: [pypi](https://pypi.org/project/scrapegraphai/)。
-[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
+```bash
+pip install scrapegraphai
-## 📖 ドキュメント
+# 重要(ウェブサイトコンテンツの取得用)
+playwright install
+```
-ScrapeGraphAIのドキュメントは[こちら](https://scrapegraph-ai.readthedocs.io/en/latest/)で見ることができます。
+**注意**: 他のライブラリとの競合を避けるため、このライブラリは仮想環境でのインストールを推奨します 🐱
-Docusaurusの[バージョン](https://scrapegraph-doc.onrender.com/)もご覧ください。
## 💻 使い方
+ウェブサイト(またはローカルファイル)から情報を抽出するために使用できる複数の標準スクレイピングパイプラインがあります。
-ウェブサイト(またはローカルファイル)から情報を抽出するための3つの主要なクローリングパイプラインがあります:
-
-- `SmartScraperGraph`: 単一ページのクローラー。ユーザープロンプトと入力ソースのみが必要です。
-- `SearchGraph`: 複数ページのクローラー。検索エンジンの上位n個の検索結果から情報を抽出します。
-- `SpeechGraph`: 単一ページのクローラー。ウェブサイトから情報を抽出し、音声ファイルを生成します。
-- `SmartScraperMultiGraph`: 複数ページのクローラー。プロンプトを与えると、
-**OpenAI**、**Groq**、**Azure**、**Gemini**などの異なるLLMをAPI経由で使用することができます。また、**Ollama**のローカルモデルを使用することもできます。
+最も一般的なのは `SmartScraperGraph` で、ユーザープロンプトとソースURLが与えられた場合に単一ページから情報を抽出します。
-### 例 1: ローカルモデルを使用したSmartScraper
-[Ollama](https://ollama.com/)がインストールされていること、および`ollama pull`コマンドでモデルがダウンロードされていることを確認してください。
-``` python
+```python
from scrapegraphai.graphs import SmartScraperGraph
+# スクレイピングパイプラインの設定を定義
graph_config = {
"llm": {
- "model": "ollama/mistral",
- "temperature": 0,
- "format": "json", # Ollamaではフォーマットを明示的に指定する必要があります
- "base_url": "http://localhost:11434", # OllamaのURLを設定
- },
- "embeddings": {
- "model": "ollama/nomic-embed-text",
- "base_url": "http://localhost:11434", # OllamaのURLを設定
+ "model": "ollama/llama3.2",
+ "model_tokens": 8192,
+ "format": "json",
},
"verbose": True,
+ "headless": False,
}
+# SmartScraperGraphインスタンスを作成
smart_scraper_graph = SmartScraperGraph(
- prompt="すべてのプロジェクトとその説明をリストしてください",
- # ダウンロード済みのHTMLコードの文字列も受け付けます
- source="https://perinim.github.io/projects",
+ prompt="ウェブページから有用な情報を抽出してください。会社の説明、創設者、ソーシャルメディアリンクを含めてください",
+ source="https://scrapegraphai.com/",
config=graph_config
)
+# パイプラインを実行
result = smart_scraper_graph.run()
-print(result)
-```
-
-出力は、プロジェクトとその説明のリストになります:
-```python
-{'projects': [{'title': 'Rotary Pendulum RL', 'description': 'Open Source project aimed at controlling a real life rotary pendulum using RL algorithms'}, {'title': 'DQN Implementation from scratch', 'description': 'Developed a Deep Q-Network algorithm to train a simple and double pendulum'}, ...]}
+import json
+print(json.dumps(result, indent=4))
```
-### 例 2: 混合モデルを使用したSearchGraph
-**Groq**をLLMとして、**Ollama**を埋め込みモデルとして使用します。
+> [!NOTE]
+> OpenAIやその他のモデルの場合は、llm設定を変更するだけです!
+> ```python
+>graph_config = {
+> "llm": {
+> "api_key": "YOUR_OPENAI_API_KEY",
+> "model": "openai/gpt-4o-mini",
+> },
+> "verbose": True,
+> "headless": False,
+>}
+>```
-```python
-from scrapegraphai.graphs import SearchGraph
-# グラフの設定を定義
-graph_config = {
- "llm": {
- "model": "groq/gemma-7b-it",
- "api_key": "GROQ_API_KEY",
- "temperature": 0
- },
- "embeddings": {
- "model": "ollama/nomic-embed-text",
- "base_url": "http://localhost:11434", # OllamaのURLを任意に設定
- },
- "max_results": 5,
-}
-
-# SearchGraphインスタンスを作成
-search_graph = SearchGraph(
- prompt="Chioggiaの伝統的なレシピをすべてリストしてください",
- config=graph_config
-)
-
-# グラフを実行
-result = search_graph.run()
-print(result)
-```
-
-出力は、レシピのリストになります:
+出力は次のような辞書になります:
```python
-{'recipes': [{'name': 'Sarde in Saòre'}, {'name': 'Bigoli in salsa'}, {'name': 'Seppie in umido'}, {'name': 'Moleche frite'}, {'name': 'Risotto alla pescatora'}, {'name': 'Broeto'}, {'name': 'Bibarasse in Cassopipa'}, {'name': 'Risi e bisi'}, {'name': 'Smegiassa Ciosota'}]}
+{
+ "description": "ScrapeGraphAI transforms websites into clean, organized data for AI agents and data analytics. It offers an AI-powered API for effortless and cost-effective data extraction.",
+ "founders": [
+ {
+ "name": "",
+ "role": "Founder & Technical Lead",
+ "linkedin": "https://www.linkedin.com/in/perinim/"
+ },
+ {
+ "name": "Marco Vinciguerra",
+ "role": "Founder & Software Engineer",
+ "linkedin": "https://www.linkedin.com/in/marco-vinciguerra-7ba365242/"
+ },
+ {
+ "name": "Lorenzo Padoan",
+ "role": "Founder & Product Engineer",
+ "linkedin": "https://www.linkedin.com/in/lorenzo-padoan-4521a2154/"
+ }
+ ],
+ "social_media_links": {
+ "linkedin": "https://www.linkedin.com/company/101881123",
+ "twitter": "https://x.com/scrapegraphai",
+ "github": "https://github.com/ScrapeGraphAI/Scrapegraph-ai"
+ }
+}
```
+複数のページから情報を抽出したり、Pythonスクリプトを生成したり、さらにはオーディオファイルを生成したりするために使用できる他のパイプラインもあります。
-### 例 3: OpenAIを使用したSpeechGraph
+| パイプライン名 | 説明 |
+|-------------------------|------------------------------------------------------------------------------------------------------------------|
+| SmartScraperGraph | ユーザープロンプトと入力ソースのみが必要な単一ページスクレイパー。 |
+| SearchGraph | 検索エンジンの上位n個の検索結果から情報を抽出する複数ページスクレイパー。 |
+| SpeechGraph | ウェブサイトから情報を抽出し、オーディオファイルを生成する単一ページスクレイパー。 |
+| ScriptCreatorGraph | ウェブサイトから情報を抽出し、Pythonスクリプトを生成する単一ページスクレイパー。 |
+| SmartScraperMultiGraph | 単一のプロンプトとソースのリストが与えられた場合に複数のページから情報を抽出する複数ページスクレイパー。 |
+| ScriptCreatorMultiGraph | 複数のページとソースから情報を抽出するためのPythonスクリプトを生成する複数ページスクレイパー。 |
-OpenAI APIキーとモデル名を渡すだけです。
+これらのグラフのそれぞれには、マルチバージョンがあります。これにより、LLMの呼び出しを並列で行うことができます。
-```python
-from scrapegraphai.graphs import SpeechGraph
-
-graph_config = {
- "llm": {
- "api_key": "OPENAI_API_KEY",
- "model": "openai/gpt-3.5-turbo",
- },
- "tts_model": {
- "api_key": "OPENAI_API_KEY",
- "model": "tts-1",
- "voice": "alloy"
- },
- "output_path": "audio_summary.mp3",
-}
+**OpenAI**、**Groq**、**Azure**、**Gemini**などのAPIを介して、または**Ollama**を使用してローカルモデルを使用して、異なるLLMを使用することができます。
-# ************************************************
-# SpeechGraphインスタンスを作成して実行
-# ************************************************
+ローカルモデルを使用する場合は、[Ollama](https://ollama.com/)がインストールされていること、および**ollama pull**コマンドを使用してモデルをダウンロードしていることを確認してください。
-speech_graph = SpeechGraph(
- prompt="プロジェクトの詳細な音声要約を作成してください。",
- source="https://perinim.github.io/projects/",
- config=graph_config,
-)
-result = speech_graph.run()
-print(result)
-```
-出力は、ページ上のプロジェクトの要約を含む音声ファイルになります。
+## 📖 ドキュメント
-## スポンサー
+[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
-<div style="text-align: center;">
- <a href="https://serpapi.com?utm_source=scrapegraphai">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/serp_api_logo.png" alt="SerpAPI" style="width: 10%;">
- </a>
- <a href="https://dashboard.statproxies.com/?refferal=scrapegraph">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/transparent_stat.png" alt="Stats" style="width: 15%;">
- </a>
-</div>
+ScrapeGraphAIのドキュメントは[こちら](https://scrapegraph-ai.readthedocs.io/en/latest/)で見ることができます。
+Docusaurusの[バージョン](https://docs-oss.scrapegraphai.com/)もご覧ください。
## 🤝 貢献
@@ -179,40 +172,48 @@ print(result)
[![My Skills](https://skillicons.dev/icons?i=linkedin)](https://www.linkedin.com/company/scrapegraphai/)
[![My Skills](https://skillicons.dev/icons?i=twitter)](https://twitter.com/scrapegraphai)
+## 🔗 ScrapeGraph API & SDKs
+システムにScrapeGraphを統合するための迅速なソリューションをお探しの場合は、強力なAPIを[こちら!](https://dashboard.scrapegraphai.com/login)でご確認ください。
+
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://dashboard.scrapegraphai.com/login)
+
+PythonとNode.jsの両方でSDKを提供しており、プロジェクトに簡単に統合できます。以下をご覧ください:
+
+| SDK | 言語 | GitHubリンク |
+|-----------|----------|-----------------------------------------------------------------------------|
+| Python SDK | Python | [scrapegraph-py](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-py) |
+| Node.js SDK | Node.js | [scrapegraph-js](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-js) |
+
+公式APIドキュメントは[こちら](https://docs.scrapegraphai.com/)で見ることができます。
-## 📈 ロードマップ
+## 🔥 ベンチマーク
-[こちら](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/README.md)でプロジェクトのロードマップをご覧ください! 🚀
+Firecrawlベンチマーク [Firecrawl benchmark](https://github.com/firecrawl/scrape-evals/pull/3)によると、ScrapeGraphは市場で最高のフェッチャーです!
-よりインタラクティブな方法でロードマップを視覚化したいですか?[markmap](https://markmap.js.org/repl)をチェックして、マークダウンの内容をエディタにコピー&ペーストして視覚化してください!
+![here](assets/histogram.png)
+
+## 📈 テレメトリ
+パッケージの品質とユーザーエクスペリエンスを向上させるために、匿名の使用メトリクスを収集しています。このデータは、改善の優先順位付けと互換性の確保に役立ちます。オプトアウトする場合は、環境変数SCRAPEGRAPHAI_TELEMETRY_ENABLED=falseを設定してください。詳細については、[こちら](https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/telemetry.html)のドキュメントを参照してください。
## ❤️ 貢献者
[![Contributors](https://contrib.rocks/image?repo=VinciGit00/Scrapegraph-ai)](https://github.com/VinciGit00/Scrapegraph-ai/graphs/contributors)
-
## 🎓 引用
-
研究目的で当社のライブラリを使用する場合は、以下の参考文献を引用してください:
```text
@misc{scrapegraph-ai,
- author = {, Lorenzo Padoan, Marco Vinciguerra},
+ author = {Lorenzo Padoan, Marco Vinciguerra},
title = {Scrapegraph-ai},
year = {2024},
url = {https://github.com/VinciGit00/Scrapegraph-ai},
- note = {A Python library for scraping leveraging large language models}
+ note = {大規模言語モデルを活用したスクレイピング用のPythonライブラリ}
}
```
## 作者
-<p align="center">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/logo_authors.png" alt="Authors_logos">
-</p>
-
-## 連絡先
| | 連絡先 |
|--------------------|----------------------|
| Marco Vinciguerra | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/marco-vinciguerra-7ba365242/) |
-| | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/perinim/) |
| Lorenzo Padoan | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/lorenzo-padoan-4521a2154/) |
## 📜 ライセンス
@@ -223,3 +224,7 @@ ScrapeGraphAIはMITライセンスの下で提供されています。詳細は[
- プロジェクトの貢献者とオープンソースコミュニティのサポートに感謝します。
- ScrapeGraphAIはデータ探索と研究目的のみに使用されます。このライブラリの不正使用については一切責任を負いません。
+
+Made with ❤️ by [ScrapeGraph AI](https://scrapegraphai.com)
+
+[Scarf tracking](https://static.scarf.sh/a.png?x-pxid=102d4b8c-cd6a-4b9e-9a16-d6d141b9212d)
diff --git a/docs/korean.md b/docs/korean.md
index 9a33e040..7f0db4b4 100644
--- a/docs/korean.md
+++ b/docs/korean.md
@@ -1,7 +1,31 @@
+## 🚀 **더 빠르고 간단한 대규모 스크래핑 방법(단 5줄의 코드)을 찾고 계신가요?** [**ScrapeGraphAI.com**](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=oss_cta&utm_content=top_banner)의 향상된 버전을 확인해보세요! 🚀
+
+---
+
# 🕷️ ScrapeGraphAI: 한 방에 끝내는 웹스크래핑
+[English](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/README.md) | [中文](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/chinese.md) | [日本語](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/japanese.md)
+| [한국어](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/korean.md)
+| [Русский](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/russian.md) | [Türkçe](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/turkish.md)
+| [Deutsch](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=de)
+| [Español](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=es)
+| [français](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=fr)
+| [Português](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/portuguese.md)
+
+[![PyPI Downloads](https://static.pepy.tech/personalized-badge/scrapegraphai?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/scrapegraphai)
+[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen?style=for-the-badge)](https://github.com/pylint-dev/pylint)
+[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/code-quality.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/code-quality.yml)
+[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?label=CodeQL&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
+[![](https://dcbadge.vercel.app/api/server/gkxQDAjfeX)](https://discord.gg/gkxQDAjfeX)
-[ScrapeGraphAI](https://scrapegraphai.com)는 웹 사이트와 로컬 문서(XML, HTML, JSON 등)에 대한 스크래핑 파이프라인을 만들기 위해 LLM 및 직접 그래프 로직을 사용하는 파이썬 웹스크래핑 라이브러리입니다.
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=api_banner&utm_content=api_banner_image)
+
+<p align="center">
+<a href="https://trendshift.io/repositories/9761" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9761" alt="VinciGit00%2FScrapegraph-ai | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+<p align="center">
+
+[ScrapeGraphAI](https://scrapegraphai.com)는 웹 사이트와 로컬 문서(XML, HTML, JSON, Markdown 등)에 대한 스크래핑 파이프라인을 만들기 위해 LLM 및 직접 그래프 로직을 사용하는 파이썬 웹스크래핑 라이브러리입니다.
추출하려는 정보를 말하기만 하면 라이브러리가 알아서 처리해 줍니다!
@@ -9,17 +33,18 @@
<img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;">
</p>
+
## 🚀 통합
ScrapeGraphAI는 인기 있는 프레임워크 및 도구와의 원활한 통합을 제공하여 스크래핑 능력을 향상시킵니다. 파이썬이든 Node.js로 개발하든, LLM 프레임워크를 사용하든, 노코드 플랫폼이든 저희의 포괄적인 통합 옵션을 제공합니다.
더 많은 정보는 다음 [링크](https://scrapegraphai.com)에서 확인할 수 있습니다
-**Integrations**:
-- **API**: [Documentation](https://docs.scrapegraphai.com/introduction)
+**통합**:
+- **API**: [문서](https://docs.scrapegraphai.com/introduction)
- **SDKs**: [Python](https://docs.scrapegraphai.com/sdks/python), [Node](https://docs.scrapegraphai.com/sdks/javascript)
-- **LLM Frameworks**: [Langchain](https://docs.scrapegraphai.com/integrations/langchain), [Llama Index](https://docs.scrapegraphai.com/integrations/llamaindex), [Crew.ai](https://docs.scrapegraphai.com/integrations/crewai), [Agno](https://docs.scrapegraphai.com/integrations/agno), [CamelAI](https://github.com/camel-ai/camel)
-- **Low-code Frameworks**: [Pipedream](https://pipedream.com/apps/scrapegraphai), [Bubble](https://bubble.io/plugin/scrapegraphai-1745408893195x213542371433906180), [Zapier](https://zapier.com/apps/scrapegraphai/integrations), [n8n](http://localhost:5001/dashboard), [Dify](https://dify.ai), [Toolhouse](https://app.toolhouse.ai/mcp-servers/scrapegraph_smartscraper)
-- **MCP server**: [Link](https://smithery.ai/server/@ScrapeGraphAI/scrapegraph-mcp)
+- **LLM 프레임워크**: [Langchain](https://docs.scrapegraphai.com/integrations/langchain), [Llama Index](https://docs.scrapegraphai.com/integrations/llamaindex), [Crew.ai](https://docs.scrapegraphai.com/integrations/crewai), [Agno](https://docs.scrapegraphai.com/integrations/agno), [CamelAI](https://github.com/camel-ai/camel)
+- **로우코드 프레임워크**: [Pipedream](https://pipedream.com/apps/scrapegraphai), [Bubble](https://bubble.io/plugin/scrapegraphai-1745408893195x213542371433906180), [Zapier](https://zapier.com/apps/scrapegraphai/integrations), [n8n](http://localhost:5001/dashboard), [Dify](https://dify.ai), [Toolhouse](https://app.toolhouse.ai/mcp-servers/scrapegraph_smartscraper)
+- **MCP 서버**: [링크](https://smithery.ai/server/@ScrapeGraphAI/scrapegraph-mcp)
## 🚀 빠른 설치
@@ -28,10 +53,12 @@ Scrapegraph-ai에 대한 참조 페이지는 PyPI의 공식 페이지에서 확
```bash
pip install scrapegraphai
-# 중요 (웹사이트 스크래핑을 위한 설치)
+# 중요 (웹사이트 콘텐츠 가져오기용)
playwright install
```
-참고: 다른 라이브러리와의 충돌을 피하기 위해 라이브러리를 가상 환경에 설치하는 것이 좋습니다 🐱
+
+**참고**: 다른 라이브러리와의 충돌을 피하기 위해 라이브러리를 가상 환경에 설치하는 것이 좋습니다 🐱
+
## 💻 사용법
웹사이트(또는 로컬 파일)에서 정보를 추출하기 위해 사용할 수 있는 여러 표준 스크래핑 파이프라인이 있습니다.
@@ -46,7 +73,8 @@ from scrapegraphai.graphs import SmartScraperGraph
graph_config = {
"llm": {
"model": "ollama/llama3.2",
- "model_tokens": 8192
+ "model_tokens": 8192,
+ "format": "json",
},
"verbose": True,
"headless": False,
@@ -54,7 +82,7 @@ graph_config = {
# SmartScraperGraph 인스턴스 생성
smart_scraper_graph = SmartScraperGraph(
- prompt="Extract useful information from the webpage, including a description of what the company does, founders and social media links",
+ prompt="웹페이지에서 유용한 정보를 추출하세요. 회사가 하는 일에 대한 설명, 창립자 및 소셜 미디어 링크를 포함하세요",
source="https://scrapegraphai.com/",
config=graph_config
)
@@ -80,7 +108,7 @@ print(json.dumps(result, indent=4))
>```
-출력은 다음과 같은 dictionary 형태가 될 것입니다
+출력은 다음과 같은 dictionary 형태가 될 것입니다:
```python
{
@@ -111,14 +139,12 @@ print(json.dumps(result, indent=4))
```
여러 페이지에서 정보를 추출하거나, Python 스크립트를 생성하거나, 심지어 오디오 파일을 생성하는 데 사용할 수 있는 다른 파이프라인도 있습니다.
-| 파이프라인 | 설명 |
+| 파이프라인 이름 | 설명 |
|-------------------------|------------------------------------------------------------------------------------------------------------------|
-| SmartScraperGraph | 사용자 프롬프트와 입력 소스만 있으면 되는 단일 페이지 스크래퍼입니다.
- |
+| SmartScraperGraph | 사용자 프롬프트와 입력 소스만 있으면 되는 단일 페이지 스크래퍼입니다. |
| SearchGraph | 검색 엔진의 상위 n개 검색 결과에서 정보를 추출하는 다중 페이지 스크래퍼입니다. |
| SpeechGraph | 웹사이트에서 정보를 추출하고 오디오 파일을 생성하는 단일 페이지 스크래퍼입니다. |
-| ScriptCreatorGraph | 웹사이트에서 정보를 추출하고 파이썬 스크립트를 생성하는 단일 페이지 스크래퍼입니다.
- |
+| ScriptCreatorGraph | 웹사이트에서 정보를 추출하고 파이썬 스크립트를 생성하는 단일 페이지 스크래퍼입니다. |
| SmartScraperMultiGraph | 단일 프롬프트와 출처 목록이 주어지면 여러 페이지에서 정보를 추출하는 다중 페이지 스크래퍼입니다. |
| ScriptCreatorMultiGraph | 여러 페이지와 소스에서 정보를 추출하기 위한 파이썬 스크립트를 생성하는 다중 페이지 스크래퍼입니다. |
@@ -129,14 +155,14 @@ OpenAI, Groq, Azure, Gemini와 같은 API를 통해 다양한 LLM을 사용할
로컬 모델을 사용하려면 [Ollama](https://ollama.com/)를 설치하고 ollama pull 명령을 사용하여 모델을 다운로드해야 합니다.
-## 📖 Documentation
+## 📖 문서
-[![Colab으로 열기](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
+[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
ScrapeGraphAI 관련 문서는 [여기](https://scrapegraph-ai.readthedocs.io/en/latest/)에서 확인하실 수 있습니다.
Docusaurus도 [여기](https://docs-oss.scrapegraphai.com/)에서 확인해 보세요.
-## 🤝 Contributing
+## 🤝 기여
자유롭게 기여하고 Discord 서버에 참여하여 개선 사항을 논의하고 제안해 주세요!
@@ -149,34 +175,38 @@ Docusaurus도 [여기](https://docs-oss.scrapegraphai.com/)에서 확인해 보
## 🔗 ScrapeGraph API & SDKs
시스템에 ScrapeGraph를 통합하기 위한 빠른 솔루션을 찾고 있다면, [여기!](https://dashboard.scrapegraphai.com/login)에서 강력한 API를 확인해 보세요.
-<p align="center">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/api-banner.png" alt="ScrapeGraph API Banner" style="width: 100%;">
-</p>
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://dashboard.scrapegraphai.com/login)
Python과 Node.js SDK를 제공하여 프로젝트에 쉽게 통합할 수 있습니다. 아래에서 확인해 보세요.
-| SDK | Language | GitHub Link |
+| SDK | 언어 | GitHub 링크 |
|-----------|----------|-----------------------------------------------------------------------------|
| Python SDK | Python | [scrapegraph-py](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-py) |
| Node.js SDK | Node.js | [scrapegraph-js](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-js) |
공식 API 문서는 [여기](https://docs.scrapegraphai.com/)에서 확인할 수 있습니다.
-## 📈 Telemetry
+## 🔥 벤치마크
+
+Firecrawl 벤치마크 [Firecrawl benchmark](https://github.com/firecrawl/scrape-evals/pull/3)에 따르면, ScrapeGraph는 시장에서 최고의 페처입니다!
+
+![here](assets/histogram.png)
+
+## 📈 텔레메트리
저희는 패키지의 품질과 사용자 경험을 향상시키기 위해 익명의 사용 지표를 수집합니다. 이 데이터는 개선 사항의 우선순위를 정하고 호환성을 보장하는 데 도움이 됩니다. 옵트아웃하려면 환경 변수 SCRAPEGRAPHAI_TELEMETRY_ENABLED=false를 설정하세요. 자세한 내용은 [여기](https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/telemetry.html)에서 설명서를 참조하세요.
-## ️ 기여자들
+## ❤️ 기여자들
[![Contributors](https://contrib.rocks/image?repo=VinciGit00/Scrapegraph-ai)](https://github.com/VinciGit00/Scrapegraph-ai/graphs/contributors)
## 🎓 인용
-우리의 라이브러리를 연구 목적으로 사용한 경우 다음과 같이 인용해 주세요
+우리의 라이브러리를 연구 목적으로 사용한 경우 다음과 같이 인용해 주세요:
```text
@misc{scrapegraph-ai,
- author = {, Lorenzo Padoan, Marco Vinciguerra},
+ author = {Lorenzo Padoan, Marco Vinciguerra},
title = {Scrapegraph-ai},
year = {2024},
url = {https://github.com/VinciGit00/Scrapegraph-ai},
- note = {A Python library for scraping leveraging large language models}
+ note = {대규모 언어 모델을 활용한 스크래핑용 Python 라이브러리}
}
```
@@ -195,3 +225,7 @@ ScrapeGraphAI는 MIT License로 배포되었습니다. 자세한 내용은 [LICE
- 프로젝트에 기여한 모든 분들과 오픈 소스 커뮤니티에 감사드립니다.
- ScrapeGraphAI는 데이터 탐색 및 연구 목적으로만 사용되어야 합니다. 우리는 라이브러리의 오용에 대해 책임을 지지 않습니다.
+
+Made with ❤️ by [ScrapeGraph AI](https://scrapegraphai.com)
+
+[Scarf tracking](https://static.scarf.sh/a.png?x-pxid=102d4b8c-cd6a-4b9e-9a16-d6d141b9212d)
diff --git a/docs/portuguese.md b/docs/portuguese.md
new file mode 100644
index 00000000..c68c83ad
--- /dev/null
+++ b/docs/portuguese.md
@@ -0,0 +1,231 @@
+## 🚀 **Procurando uma forma ainda mais rápida e simples de fazer scraping em escala (apenas 5 linhas de código)?** Confira nossa versão aprimorada em [**ScrapeGraphAI.com**](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=oss_cta&utm_content=top_banner)! 🚀
+
+---
+
+# 🕷️ ScrapeGraphAI: Você Só Faz Scraping Uma Vez
+
+[English](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/README.md) | [中文](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/chinese.md) | [日本語](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/japanese.md)
+| [한국어](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/korean.md)
+| [Русский](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/russian.md) | [Türkçe](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/turkish.md)
+| [Deutsch](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=de)
+| [Español](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=es)
+| [français](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=fr)
+| [Português](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/portuguese.md)
+
+[![PyPI Downloads](https://static.pepy.tech/personalized-badge/scrapegraphai?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/scrapegraphai)
+[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen?style=for-the-badge)](https://github.com/pylint-dev/pylint)
+[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/code-quality.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/code-quality.yml)
+[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?label=CodeQL&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
+[![](https://dcbadge.vercel.app/api/server/gkxQDAjfeX)](https://discord.gg/gkxQDAjfeX)
+
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=api_banner&utm_content=api_banner_image)
+
+<p align="center">
+<a href="https://trendshift.io/repositories/9761" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9761" alt="VinciGit00%2FScrapegraph-ai | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+<p align="center">
+
+[ScrapeGraphAI](https://scrapegraphai.com) é uma biblioteca Python de *web scraping* que usa LLM e lógica de grafo direto para criar pipelines de scraping para sites e documentos locais (XML, HTML, JSON, Markdown, etc.).
+
+Basta dizer qual informação você quer extrair e a biblioteca fará isso por você!
+
+<p align="center">
+ <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;">
+</p>
+
+
+## 🚀 Integrações
+O ScrapeGraphAI oferece integração perfeita com frameworks e ferramentas populares para aprimorar suas capacidades de scraping. Seja você construindo com Python ou Node.js, usando frameworks LLM ou trabalhando com plataformas no-code, temos você coberto com nossas opções abrangentes de integração.
+
+Você pode encontrar mais informações no seguinte [link](https://scrapegraphai.com)
+
+**Integrações**:
+- **API**: [Documentação](https://docs.scrapegraphai.com/introduction)
+- **SDKs**: [Python](https://docs.scrapegraphai.com/sdks/python), [Node](https://docs.scrapegraphai.com/sdks/javascript)
+- **Frameworks LLM**: [Langchain](https://docs.scrapegraphai.com/integrations/langchain), [Llama Index](https://docs.scrapegraphai.com/integrations/llamaindex), [Crew.ai](https://docs.scrapegraphai.com/integrations/crewai), [Agno](https://docs.scrapegraphai.com/integrations/agno), [CamelAI](https://github.com/camel-ai/camel)
+- **Frameworks Low-code**: [Pipedream](https://pipedream.com/apps/scrapegraphai), [Bubble](https://bubble.io/plugin/scrapegraphai-1745408893195x213542371433906180), [Zapier](https://zapier.com/apps/scrapegraphai/integrations), [n8n](http://localhost:5001/dashboard), [Dify](https://dify.ai), [Toolhouse](https://app.toolhouse.ai/mcp-servers/scrapegraph_smartscraper)
+- **Servidor MCP**: [Link](https://smithery.ai/server/@ScrapeGraphAI/scrapegraph-mcp)
+
+## 🚀 Instalação Rápida
+
+A página de referência para Scrapegraph-ai está disponível na página oficial do PyPI: [pypi](https://pypi.org/project/scrapegraphai/).
+
+```bash
+pip install scrapegraphai
+
+# IMPORTANTE (para buscar conteúdo de sites)
+playwright install
+```
+
+**Nota**: é recomendado instalar a biblioteca em um ambiente virtual para evitar conflitos com outras bibliotecas 🐱
+
+
+## 💻 Uso
+Existem múltiplos pipelines de scraping padrão que podem ser usados para extrair informações de um site (ou arquivo local).
+
+O mais comum é o `SmartScraperGraph`, que extrai informações de uma única página dado um prompt do usuário e uma URL de origem.
+
+
+```python
+from scrapegraphai.graphs import SmartScraperGraph
+
+# Defina a configuração para o pipeline de scraping
+graph_config = {
+ "llm": {
+ "model": "ollama/llama3.2",
+ "model_tokens": 8192,
+ "format": "json",
+ },
+ "verbose": True,
+ "headless": False,
+}
+
+# Crie a instância SmartScraperGraph
+smart_scraper_graph = SmartScraperGraph(
+ prompt="Extraia informações úteis da página web, incluindo uma descrição do que a empresa faz, fundadores e links de redes sociais",
+ source="https://scrapegraphai.com/",
+ config=graph_config
+)
+
+# Execute o pipeline
+result = smart_scraper_graph.run()
+
+import json
+print(json.dumps(result, indent=4))
+```
+
+> [!NOTE]
+> Para OpenAI e outros modelos, você só precisa mudar a configuração do llm!
+> ```python
+>graph_config = {
+> "llm": {
+> "api_key": "YOUR_OPENAI_API_KEY",
+> "model": "openai/gpt-4o-mini",
+> },
+> "verbose": True,
+> "headless": False,
+>}
+>```
+
+
+A saída será um dicionário como o seguinte:
+
+```python
+{
+ "description": "ScrapeGraphAI transforms websites into clean, organized data for AI agents and data analytics. It offers an AI-powered API for effortless and cost-effective data extraction.",
+ "founders": [
+ {
+ "name": "",
+ "role": "Founder & Technical Lead",
+ "linkedin": "https://www.linkedin.com/in/perinim/"
+ },
+ {
+ "name": "Marco Vinciguerra",
+ "role": "Founder & Software Engineer",
+ "linkedin": "https://www.linkedin.com/in/marco-vinciguerra-7ba365242/"
+ },
+ {
+ "name": "Lorenzo Padoan",
+ "role": "Founder & Product Engineer",
+ "linkedin": "https://www.linkedin.com/in/lorenzo-padoan-4521a2154/"
+ }
+ ],
+ "social_media_links": {
+ "linkedin": "https://www.linkedin.com/company/101881123",
+ "twitter": "https://x.com/scrapegraphai",
+ "github": "https://github.com/ScrapeGraphAI/Scrapegraph-ai"
+ }
+}
+```
+Existem outros pipelines que podem ser usados para extrair informações de múltiplas páginas, gerar scripts Python ou até mesmo gerar arquivos de áudio.
+
+| Nome do Pipeline | Descrição |
+|-------------------------|------------------------------------------------------------------------------------------------------------------|
+| SmartScraperGraph | Scraper de página única que só precisa de um prompt do usuário e uma fonte de entrada. |
+| SearchGraph | Scraper de múltiplas páginas que extrai informações dos n principais resultados de pesquisa de um mecanismo de busca. |
+| SpeechGraph | Scraper de página única que extrai informações de um site e gera um arquivo de áudio. |
+| ScriptCreatorGraph | Scraper de página única que extrai informações de um site e gera um script Python. |
+| SmartScraperMultiGraph | Scraper de múltiplas páginas que extrai informações de múltiplas páginas dado um único prompt e uma lista de fontes. |
+| ScriptCreatorMultiGraph | Scraper de múltiplas páginas que gera um script Python para extrair informações de múltiplas páginas e fontes. |
+
+Para cada um desses grafos existe a versão multi. Isso permite fazer chamadas do LLM em paralelo.
+
+É possível usar diferentes LLMs através de APIs, como **OpenAI**, **Groq**, **Azure** e **Gemini**, ou modelos locais usando **Ollama**.
+
+Lembre-se de ter o [Ollama](https://ollama.com/) instalado e baixar os modelos usando o comando **ollama pull**, se você quiser usar modelos locais.
+
+
+## 📖 Documentação
+
+[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
+
+A documentação do ScrapeGraphAI pode ser encontrada [aqui](https://scrapegraph-ai.readthedocs.io/en/latest/).
+Confira também o Docusaurus [aqui](https://docs-oss.scrapegraphai.com/).
+
+## 🤝 Contribuindo
+
+Sinta-se à vontade para contribuir e junte-se ao nosso servidor Discord para discutir melhorias e nos dar sugestões!
+
+Por favor, veja as [diretrizes de contribuição](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/CONTRIBUTING.md).
+
+[![My Skills](https://skillicons.dev/icons?i=discord)](https://discord.gg/uJN7TYcpNa)
+[![My Skills](https://skillicons.dev/icons?i=linkedin)](https://www.linkedin.com/company/scrapegraphai/)
+[![My Skills](https://skillicons.dev/icons?i=twitter)](https://twitter.com/scrapegraphai)
+
+## 🔗 ScrapeGraph API & SDKs
+Se você está procurando uma solução rápida para integrar o ScrapeGraph em seu sistema, confira nossa poderosa API [aqui!](https://dashboard.scrapegraphai.com/login)
+
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://dashboard.scrapegraphai.com/login)
+
+Oferecemos SDKs em Python e Node.js, facilitando a integração em seus projetos. Confira abaixo:
+
+| SDK | Linguagem | Link do GitHub |
+|-----------|----------|-----------------------------------------------------------------------------|
+| Python SDK | Python | [scrapegraph-py](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-py) |
+| Node.js SDK | Node.js | [scrapegraph-js](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-js) |
+
+A Documentação Oficial da API pode ser encontrada [aqui](https://docs.scrapegraphai.com/).
+
+## 🔥 Benchmark
+
+De acordo com o benchmark do Firecrawl [Firecrawl benchmark](https://github.com/firecrawl/scrape-evals/pull/3), o ScrapeGraph é o melhor fetcher do mercado!
+
+![here](assets/histogram.png)
+
+## 📈 Telemetria
+Coletamos métricas de uso anônimas para melhorar a qualidade e a experiência do usuário do nosso pacote. Os dados nos ajudam a priorizar melhorias e garantir compatibilidade. Se você deseja optar por não participar, defina a variável de ambiente SCRAPEGRAPHAI_TELEMETRY_ENABLED=false. Para mais informações, consulte a documentação [aqui](https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/telemetry.html).
+
+## ❤️ Contribuidores
+[![Contributors](https://contrib.rocks/image?repo=VinciGit00/Scrapegraph-ai)](https://github.com/VinciGit00/Scrapegraph-ai/graphs/contributors)
+
+## 🎓 Citações
+Se você usou nossa biblioteca para fins de pesquisa, por favor, cite-nos com a seguinte referência:
+```text
+ @misc{scrapegraph-ai,
+ author = {Lorenzo Padoan, Marco Vinciguerra},
+ title = {Scrapegraph-ai},
+ year = {2024},
+ url = {https://github.com/VinciGit00/Scrapegraph-ai},
+ note = {Uma biblioteca Python para scraping aproveitando grandes modelos de linguagem}
+ }
+```
+
+## Autores
+
+| | Informações de Contato |
+|--------------------|----------------------|
+| Marco Vinciguerra | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/marco-vinciguerra-7ba365242/) |
+| Lorenzo Padoan | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/lorenzo-padoan-4521a2154/) |
+
+## 📜 Licença
+
+O ScrapeGraphAI está licenciado sob a Licença MIT. Veja o arquivo [LICENSE](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/LICENSE) para mais informações.
+
+## Agradecimentos
+
+- Gostaríamos de agradecer a todos os contribuidores do projeto e à comunidade de código aberto pelo seu apoio.
+- O ScrapeGraphAI destina-se apenas a fins de exploração de dados e pesquisa. Não nos responsabilizamos por qualquer uso indevido da biblioteca.
+
+Made with ❤️ by [ScrapeGraph AI](https://scrapegraphai.com)
+
+[Scarf tracking](https://static.scarf.sh/a.png?x-pxid=102d4b8c-cd6a-4b9e-9a16-d6d141b9212d)
diff --git a/docs/russian.md b/docs/russian.md
index 995916d8..e8351831 100644
--- a/docs/russian.md
+++ b/docs/russian.md
@@ -1,179 +1,166 @@
+## 🚀 **Ищете еще более быстрый и простой способ масштабного скрейпинга (всего 5 строк кода)?** Ознакомьтесь с нашей улучшенной версией на [**ScrapeGraphAI.com**](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=oss_cta&utm_content=top_banner)! 🚀
+
+---
+
# 🕷️ ScrapeGraphAI: Вы скрейпите только один раз
-[![Downloads](https://img.shields.io/pepy/dt/scrapegraphai?style=for-the-badge)](https://pepy.tech/project/scrapegraphai)
+[English](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/README.md) | [中文](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/chinese.md) | [日本語](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/japanese.md)
+| [한국어](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/korean.md)
+| [Русский](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/russian.md) | [Türkçe](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/turkish.md)
+| [Deutsch](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=de)
+| [Español](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=es)
+| [français](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=fr)
+| [Português](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/portuguese.md)
+
+[![PyPI Downloads](https://static.pepy.tech/personalized-badge/scrapegraphai?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/scrapegraphai)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen?style=for-the-badge)](https://github.com/pylint-dev/pylint)
-[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/pylint.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/pylint.yml)
+[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/code-quality.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/code-quality.yml)
[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?label=CodeQL&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![](https://dcbadge.vercel.app/api/server/gkxQDAjfeX)](https://discord.gg/gkxQDAjfeX)
-ScrapeGraphAI - это библиотека для веб-скрейпинга на Python, которая использует LLM и прямую графовую логику для создания скрейпинговых пайплайнов для веб-сайтов и локальных документов (XML, HTML, JSON и т.д.).
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=api_banner&utm_content=api_banner_image)
+
+<p align="center">
+<a href="https://trendshift.io/repositories/9761" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9761" alt="VinciGit00%2FScrapegraph-ai | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+<p align="center">
+
+ScrapeGraphAI - это библиотека для веб-скрейпинга на Python, которая использует LLM и прямую графовую логику для создания скрейпинговых пайплайнов для веб-сайтов и локальных документов (XML, HTML, JSON, Markdown и т.д.).
Просто укажите, какую информацию вы хотите извлечь, и библиотека сделает это за вас!
<p align="center">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/scrapegraphai_logo.png" alt="Scrapegraph-ai Logo" style="width: 50%;">
+ <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;">
</p>
+
+## 🚀 Интеграции
+ScrapeGraphAI предлагает бесшовную интеграцию с популярными фреймворками и инструментами для улучшения ваших возможностей скрейпинга. Независимо от того, создаете ли вы приложения на Python или Node.js, используете ли LLM-фреймворки или работаете с платформами без кода, мы предоставляем комплексные варианты интеграции.
+
+Вы можете найти больше информации по следующей [ссылке](https://scrapegraphai.com)
+
+**Интеграции**:
+- **API**: [Документация](https://docs.scrapegraphai.com/introduction)
+- **SDKs**: [Python](https://docs.scrapegraphai.com/sdks/python), [Node](https://docs.scrapegraphai.com/sdks/javascript)
+- **LLM Фреймворки**: [Langchain](https://docs.scrapegraphai.com/integrations/langchain), [Llama Index](https://docs.scrapegraphai.com/integrations/llamaindex), [Crew.ai](https://docs.scrapegraphai.com/integrations/crewai), [Agno](https://docs.scrapegraphai.com/integrations/agno), [CamelAI](https://github.com/camel-ai/camel)
+- **Low-code Фреймворки**: [Pipedream](https://pipedream.com/apps/scrapegraphai), [Bubble](https://bubble.io/plugin/scrapegraphai-1745408893195x213542371433906180), [Zapier](https://zapier.com/apps/scrapegraphai/integrations), [n8n](http://localhost:5001/dashboard), [Dify](https://dify.ai), [Toolhouse](https://app.toolhouse.ai/mcp-servers/scrapegraph_smartscraper)
+- **MCP сервер**: [Ссылка](https://smithery.ai/server/@ScrapeGraphAI/scrapegraph-mcp)
+
## 🚀 Быстрая установка
Референсная страница для Scrapegraph-ai доступна на официальной странице PyPI: [pypi](https://pypi.org/project/scrapegraphai/).
```bash
pip install scrapegraphai
+
+# ВАЖНО (для получения содержимого веб-сайтов)
+playwright install
```
**Примечание**: рекомендуется устанавливать библиотеку в виртуальную среду, чтобы избежать конфликтов с другими библиотеками 🐱
-## 🔍 Демонстрация
-
-Официальная демонстрация на Streamlit:
-
-[![My Skills](https://skillicons.dev/icons?i=react)](https://scrapegraph-ai-web-dashboard.streamlit.app)
-
-Попробуйте ее прямо в интернете, используя Google Colab:
-
-[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
-
-## 📖 Документация
-
-Документация для ScrapeGraphAI доступна [здесь](https://scrapegraph-ai.readthedocs.io/en/latest/)..
-
-Посмотрите также Docusaurus [здесь](https://scrapegraph-doc.onrender.com/).
## 💻 Использование
+Существует несколько стандартных скрейпинговых пайплайнов, которые можно использовать для извлечения информации с веб-сайта (или локального файла).
-Существует три основных скрейпинговых пайплайна, которые можно использовать для извлечения информации с веб-сайта (или локального файла):
+Наиболее распространенным является `SmartScraperGraph`, который извлекает информацию с одной страницы при наличии пользовательского запроса и исходного URL.
-`SmartScraperGraph`: скрейпер одной страницы, которому требуется только пользовательский запрос и источник ввода;
-`SearchGraph`: многопользовательский скрейпер, который извлекает информацию из топ n результатов поиска поисковой системы;
-`SpeechGraph`: скрейпер одной страницы, который извлекает информацию с веб-сайта и генерирует аудиофайл.
-`SmartScraperMultiGraph`: скрейпер нескольких страниц по одному запросу.
-
-Можно использовать различные LLM через API, такие как **OpenAI**, **Groq**, **Azure** и **Gemini**, или локальные модели, используя **Ollama**.
-
-### Пример 1: SmartScraper с использованием локальных моделей
-
-Не забудьте установить [Ollama](https://ollama.com/) и загрузить модели, используя команду `ollama pull`.
```python
from scrapegraphai.graphs import SmartScraperGraph
+# Определите конфигурацию для скрейпингового пайплайна
graph_config = {
"llm": {
- "model": "ollama/mistral",
- "temperature": 0,
- "format": "json", # Ollama требует явного указания формата
- "base_url": "http://localhost:11434", # укажите URL Ollama
- },
- "embeddings": {
- "model": "ollama/nomic-embed-text",
- "base_url": "http://localhost:11434", # укажите URL Ollama
+ "model": "ollama/llama3.2",
+ "model_tokens": 8192,
+ "format": "json",
},
"verbose": True,
+ "headless": False,
}
+# Создайте экземпляр SmartScraperGraph
smart_scraper_graph = SmartScraperGraph(
- prompt="Перечислите все проекты с их описаниями",
- # также принимает строку с уже загруженным HTML-кодом
- source="https://perinim.github.io/projects",
+ prompt="Извлеките полезную информацию с веб-страницы, включая описание деятельности компании, основателей и ссылки на социальные сети",
+ source="https://scrapegraphai.com/",
config=graph_config
)
+# Запустите пайплайн
result = smart_scraper_graph.run()
-print(result)
-```
-
-Выходные данные будут представлять собой список проектов с их описаниями, например:
-```python
-{'projects': [{'title': 'Rotary Pendulum RL', 'description': 'Open Source проект, направленный на управление реальным роторным маятником с использованием алгоритмов RL'}, {'title': 'DQN Implementation from scratch', 'description': 'Разработан алгоритм Deep Q-Network для обучения простого и двойного маятника'}, ...]}
+import json
+print(json.dumps(result, indent=4))
```
-### Пример 2: SearchGraph с использованием смешанных моделей
+> [!NOTE]
+> Для OpenAI и других моделей вам просто нужно изменить конфигурацию llm!
+> ```python
+>graph_config = {
+> "llm": {
+> "api_key": "YOUR_OPENAI_API_KEY",
+> "model": "openai/gpt-4o-mini",
+> },
+> "verbose": True,
+> "headless": False,
+>}
+>```
-Мы используем **Groq** для LLM и **Ollama** для встраивания.
-```python
-from scrapegraphai.graphs import SearchGraph
-
-# Определите конфигурацию для графа
-graph_config = {
- "llm": {
- "model": "groq/gemma-7b-it",
- "api_key": "GROQ_API_KEY",
- "temperature": 0
- },
- "embeddings": {
- "model": "ollama/nomic-embed-text",
- "base_url": "http://localhost:11434", # укажите URL Ollama произвольно
- },
- "max_results": 5,
-}
-
-# Создайте экземпляр SearchGraph
-search_graph = SearchGraph(
- prompt="Перечислите все традиционные рецепты из Кьоджи",
- config=graph_config
-)
-
-# Запустите граф
-result = search_graph.run()
-print(result)
-```
-
-Выходные данные будут представлять собой список рецептов, например:
+Выходные данные будут представлять собой словарь, например:
```python
-{'recipes': [{'name': 'Sarde in Saòre'}, {'name': 'Bigoli in salsa'}, {'name': 'Seppie in umido'}, {'name': 'Moleche frite'}, {'name': 'Risotto alla pescatora'}, {'name': 'Broeto'}, {'name': 'Bibarasse in Cassopipa'}, {'name': 'Risi e bisi'}, {'name': 'Smegiassa Ciosota'}]}
+{
+ "description": "ScrapeGraphAI transforms websites into clean, organized data for AI agents and data analytics. It offers an AI-powered API for effortless and cost-effective data extraction.",
+ "founders": [
+ {
+ "name": "",
+ "role": "Founder & Technical Lead",
+ "linkedin": "https://www.linkedin.com/in/perinim/"
+ },
+ {
+ "name": "Marco Vinciguerra",
+ "role": "Founder & Software Engineer",
+ "linkedin": "https://www.linkedin.com/in/marco-vinciguerra-7ba365242/"
+ },
+ {
+ "name": "Lorenzo Padoan",
+ "role": "Founder & Product Engineer",
+ "linkedin": "https://www.linkedin.com/in/lorenzo-padoan-4521a2154/"
+ }
+ ],
+ "social_media_links": {
+ "linkedin": "https://www.linkedin.com/company/101881123",
+ "twitter": "https://x.com/scrapegraphai",
+ "github": "https://github.com/ScrapeGraphAI/Scrapegraph-ai"
+ }
+}
```
+Существуют другие пайплайны, которые можно использовать для извлечения информации с нескольких страниц, генерации Python-скриптов или даже генерации аудиофайлов.
-### Пример 3: SpeechGraph с использованием OpenAI
+| Название пайплайна | Описание |
+|-------------------------|------------------------------------------------------------------------------------------------------------------|
+| SmartScraperGraph | Скрейпер одной страницы, которому требуется только пользовательский запрос и источник ввода. |
+| SearchGraph | Многопользовательский скрейпер, который извлекает информацию из топ n результатов поиска поисковой системы. |
+| SpeechGraph | Скрейпер одной страницы, который извлекает информацию с веб-сайта и генерирует аудиофайл. |
+| ScriptCreatorGraph | Скрейпер одной страницы, который извлекает информацию с веб-сайта и генерирует Python-скрипт. |
+| SmartScraperMultiGraph | Многопользовательский скрейпер, который извлекает информацию с нескольких страниц при наличии одного запроса и списка источников. |
+| ScriptCreatorMultiGraph | Многопользовательский скрейпер, который генерирует Python-скрипт для извлечения информации с нескольких страниц и источников. |
-Вам просто нужно передать ключ API OpenAI и название модели.
-
-```python
-from scrapegraphai.graphs import SpeechGraph
-
-graph_config = {
- "llm": {
- "api_key": "OPENAI_API_KEY",
- "model": "openai/gpt-3.5-turbo",
- },
- "tts_model": {
- "api_key": "OPENAI_API_KEY",
- "model": "tts-1",
- "voice": "alloy"
- },
- "output_path": "audio_summary.mp3",
-}
+Для каждого из этих графов существует мульти-версия. Это позволяет выполнять вызовы LLM параллельно.
-# ************************************************
-# Создайте экземпляр SpeechGraph и запустите его
-# ************************************************
+Можно использовать различные LLM через API, такие как **OpenAI**, **Groq**, **Azure** и **Gemini**, или локальные модели, используя **Ollama**.
-speech_graph = SpeechGraph(
- prompt="Сделайте подробное аудиорезюме проектов.",
- source="https://perinim.github.io/projects/",
- config=graph_config,
-)
+Не забудьте установить [Ollama](https://ollama.com/) и загрузить модели, используя команду **ollama pull**, если вы хотите использовать локальные модели.
-result = speech_graph.run()
-print(result)
-```
-Выходные данные будут представлять собой аудиофайл с резюме проектов на странице.
+## 📖 Документация
-## Спонсоры
+[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
-<div style="text-align: center;">
- <a href="https://serpapi.com?utm_source=scrapegraphai">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/serp_api_logo.png" alt="SerpAPI" style="width: 10%;">
- </a>
- <a href="https://dashboard.statproxies.com/?refferal=scrapegraph">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/transparent_stat.png" alt="Stats" style="width: 15%;">
- </a>
-</div>
+Документация для ScrapeGraphAI доступна [здесь](https://scrapegraph-ai.readthedocs.io/en/latest/).
+Посмотрите также Docusaurus [здесь](https://docs-oss.scrapegraphai.com/).
## 🤝 Участие
@@ -185,11 +172,28 @@ print(result)
[![My Skills](https://skillicons.dev/icons?i=linkedin)](https://www.linkedin.com/company/scrapegraphai/)
[![My Skills](https://skillicons.dev/icons?i=twitter)](https://twitter.com/scrapegraphai)
-## 📈 Дорожная карта
+## 🔗 ScrapeGraph API & SDKs
+Если вы ищете быстрое решение для интеграции ScrapeGraph в вашу систему, ознакомьтесь с нашим мощным API [здесь!](https://dashboard.scrapegraphai.com/login)
+
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://dashboard.scrapegraphai.com/login)
+
+Мы предлагаем SDK для Python и Node.js, что упрощает интеграцию в ваши проекты. Ознакомьтесь с ними ниже:
+
+| SDK | Язык | GitHub Ссылка |
+|-----------|----------|-----------------------------------------------------------------------------|
+| Python SDK | Python | [scrapegraph-py](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-py) |
+| Node.js SDK | Node.js | [scrapegraph-js](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-js) |
-Посмотрите дорожную карту проекта [здесь](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/README.md)! 🚀
+Официальная документация API доступна [здесь](https://docs.scrapegraphai.com/).
-Хотите визуализировать дорожную карту более интерактивно? Посмотрите визуализацию [markmap](https://markmap.js.org/repl), скопировав содержимое markdown в редактор!
+## 🔥 Бенчмарк
+
+Согласно бенчмарку Firecrawl [Firecrawl benchmark](https://github.com/firecrawl/scrape-evals/pull/3), ScrapeGraph является лучшим фетчером на рынке!
+
+![here](assets/histogram.png)
+
+## 📈 Телеметрия
+Мы собираем анонимные метрики использования для повышения качества нашего пакета и пользовательского опыта. Данные помогают нам определять приоритеты улучшений и обеспечивать совместимость. Если вы хотите отказаться, установите переменную окружения SCRAPEGRAPHAI_TELEMETRY_ENABLED=false. Для получения дополнительной информации обратитесь к документации [здесь](https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/telemetry.html).
## ❤️ Разработчики программного обеспечения
@@ -201,7 +205,7 @@ print(result)
```text
@misc{scrapegraph-ai,
- author = {Марко Перини, Лоренцо Падоан, Марко Винчигуэрра},
+ author = {Lorenzo Padoan, Marco Vinciguerra},
title = {Scrapegraph-ai},
year = {2024},
url = {https://github.com/VinciGit00/Scrapegraph-ai},
@@ -211,14 +215,9 @@ print(result)
## Авторы
-<p align="center">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/logo_authors.png" alt="Authors_logos">
-</p>
-
-| | Контактная информация |
-|--------------------|------------------------|
+| | Контактная информация |
+|--------------------|----------------------|
| Marco Vinciguerra | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/marco-vinciguerra-7ba365242/) |
-| | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/perinim/) |
| Lorenzo Padoan | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/lorenzo-padoan-4521a2154/) |
## 📜 Лицензия
@@ -229,3 +228,7 @@ ScrapeGraphAI лицензирован под MIT License. Подробнее с
- Мы хотели бы поблагодарить всех участников проекта и сообщество с открытым исходным кодом за их поддержку.
- ScrapeGraphAI предназначен только для исследования данных и научных целей. Мы не несем ответственности за неправильное использование библиотеки.
+
+Made with ❤️ by [ScrapeGraph AI](https://scrapegraphai.com)
+
+[Scarf tracking](https://static.scarf.sh/a.png?x-pxid=102d4b8c-cd6a-4b9e-9a16-d6d141b9212d)
diff --git a/docs/turkish.md b/docs/turkish.md
index fb94acb4..dcd20649 100644
--- a/docs/turkish.md
+++ b/docs/turkish.md
@@ -1,16 +1,30 @@
+## 🚀 **Daha hızlı ve daha basit bir ölçekli kazıma yöntemi (sadece 5 satır kod) mi arıyorsunuz?** [**ScrapeGraphAI.com**](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=oss_cta&utm_content=top_banner)'daki geliştirilmiş sürümümüze göz atın! 🚀
+
+---
+
# 🕷️ ScrapeGraphAI: Yalnızca Bir Kez Kazıyın
[English](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/README.md) | [中文](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/chinese.md) | [日本語](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/japanese.md)
| [한국어](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/korean.md)
| [Русский](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/russian.md) | [Türkçe](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/turkish.md)
+| [Deutsch](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=de)
+| [Español](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=es)
+| [français](https://www.readme-i18n.com/ScrapeGraphAI/Scrapegraph-ai?lang=fr)
+| [Português](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/docs/portuguese.md)
-[![İndirmeler](https://img.shields.io/pepy/dt/scrapegraphai?style=for-the-badge)](https://pepy.tech/project/scrapegraphai)
+[![PyPI Downloads](https://static.pepy.tech/personalized-badge/scrapegraphai?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/scrapegraphai)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen?style=for-the-badge)](https://github.com/pylint-dev/pylint)
-[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/pylint.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/pylint.yml)
+[![Pylint](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/code-quality.yml?label=Pylint&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/code-quality.yml)
[![CodeQL](https://img.shields.io/github/actions/workflow/status/VinciGit00/Scrapegraph-ai/codeql.yml?label=CodeQL&logo=github&style=for-the-badge)](https://github.com/VinciGit00/Scrapegraph-ai/actions/workflows/codeql.yml)
-[![Lisans: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![](https://dcbadge.vercel.app/api/server/gkxQDAjfeX)](https://discord.gg/gkxQDAjfeX)
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://scrapegraphai.com/?utm_source=github&utm_medium=readme&utm_campaign=api_banner&utm_content=api_banner_image)
+
+<p align="center">
+<a href="https://trendshift.io/repositories/9761" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9761" alt="VinciGit00%2FScrapegraph-ai | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+<p align="center">
+
ScrapeGraphAI, LLM ve grafik mantığını kullanarak web siteleri ve yerel belgeler (XML, HTML, JSON, Markdown vb.) için kazıma süreçleri oluşturan bir _web kazıma_ Python kütüphanesidir.
Sadece hangi bilgiyi çıkarmak istediğinizi söyleyin, kütüphane sizin için yapar!
@@ -19,6 +33,19 @@ Sadece hangi bilgiyi çıkarmak istediğinizi söyleyin, kütüphane sizin için
<img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;">
</p>
+
+## 🚀 Entegrasyonlar
+ScrapeGraphAI, kazıma yeteneklerinizi geliştirmek için popüler çerçeveler ve araçlarla sorunsuz entegrasyon sunar. Python veya Node.js ile geliştirme yapıyor olsanız da, LLM çerçeveleri kullanıyor olsanız da, no-code platformlarda çalışıyor olsanız da, kapsamlı entegrasyon seçeneklerimizle yanınızdayız.
+
+Daha fazla bilgiyi aşağıdaki [bağlantıda](https://scrapegraphai.com) bulabilirsiniz
+
+**Entegrasyonlar**:
+- **API**: [Dokümantasyon](https://docs.scrapegraphai.com/introduction)
+- **SDKs**: [Python](https://docs.scrapegraphai.com/sdks/python), [Node](https://docs.scrapegraphai.com/sdks/javascript)
+- **LLM Çerçeveleri**: [Langchain](https://docs.scrapegraphai.com/integrations/langchain), [Llama Index](https://docs.scrapegraphai.com/integrations/llamaindex), [Crew.ai](https://docs.scrapegraphai.com/integrations/crewai), [Agno](https://docs.scrapegraphai.com/integrations/agno), [CamelAI](https://github.com/camel-ai/camel)
+- **Low-code Çerçeveleri**: [Pipedream](https://pipedream.com/apps/scrapegraphai), [Bubble](https://bubble.io/plugin/scrapegraphai-1745408893195x213542371433906180), [Zapier](https://zapier.com/apps/scrapegraphai/integrations), [n8n](http://localhost:5001/dashboard), [Dify](https://dify.ai), [Toolhouse](https://app.toolhouse.ai/mcp-servers/scrapegraph_smartscraper)
+- **MCP sunucusu**: [Bağlantı](https://smithery.ai/server/@ScrapeGraphAI/scrapegraph-mcp)
+
## 🚀 Hızlı Kurulum
Scrapegraph-ai için referans sayfası PyPI'nin resmi sayfasında mevcuttur: [pypi](https://pypi.org/project/scrapegraphai/).
@@ -26,6 +53,7 @@ Scrapegraph-ai için referans sayfası PyPI'nin resmi sayfasında mevcuttur: [py
```bash
pip install scrapegraphai
+# ÖNEMLİ (web sitesi içeriğini almak için)
playwright install
```
@@ -38,15 +66,16 @@ Web sitesinden (veya yerel dosyadan) bilgi çıkarmak için kullanılabilecek bi
En yaygın olanı `SmartScraperGraph`'tır; bu, bir kullanıcı isteği ve kaynak URL'si verildiğinde tek bir sayfadan bilgi çıkarır.
+
```python
-import json
from scrapegraphai.graphs import SmartScraperGraph
# Kazıma süreci için yapılandırmayı tanımlayın
graph_config = {
"llm": {
- "api_key": "SİZİN_OPENAI_API_ANAHTARINIZ",
- "model": "openai/gpt-4o-mini",
+ "model": "ollama/llama3.2",
+ "model_tokens": 8192,
+ "format": "json",
},
"verbose": True,
"headless": False,
@@ -54,26 +83,61 @@ graph_config = {
# SmartScraperGraph örneğini oluşturun
smart_scraper_graph = SmartScraperGraph(
- prompt="Şirketin ne yaptığı, adı ve bir iletişim e-postası hakkında bazı bilgiler bulun.",
+ prompt="Web sayfasından yararlı bilgileri çıkarın, şirketin ne yaptığına dair bir açıklama, kurucular ve sosyal medya bağlantılarını dahil edin",
source="https://scrapegraphai.com/",
config=graph_config
)
# Süreci çalıştırın
result = smart_scraper_graph.run()
+
+import json
print(json.dumps(result, indent=4))
```
+> [!NOTE]
+> OpenAI ve diğer modeller için sadece llm yapılandırmasını değiştirmeniz yeterlidir!
+> ```python
+>graph_config = {
+> "llm": {
+> "api_key": "YOUR_OPENAI_API_KEY",
+> "model": "openai/gpt-4o-mini",
+> },
+> "verbose": True,
+> "headless": False,
+>}
+>```
+
+
Çıktı aşağıdaki gibi bir sözlük olacaktır:
```python
{
- "company": "ScrapeGraphAI",
- "name": "ScrapeGraphAİ LLM kullanarak web sitelerinden ve yerel belgelerden içerik çıkarma",
- "contact_email": "[email protected]"
+ "description": "ScrapeGraphAI transforms websites into clean, organized data for AI agents and data analytics. It offers an AI-powered API for effortless and cost-effective data extraction.",
+ "founders": [
+ {
+ "name": "",
+ "role": "Founder & Technical Lead",
+ "linkedin": "https://www.linkedin.com/in/perinim/"
+ },
+ {
+ "name": "Marco Vinciguerra",
+ "role": "Founder & Software Engineer",
+ "linkedin": "https://www.linkedin.com/in/marco-vinciguerra-7ba365242/"
+ },
+ {
+ "name": "Lorenzo Padoan",
+ "role": "Founder & Product Engineer",
+ "linkedin": "https://www.linkedin.com/in/lorenzo-padoan-4521a2154/"
+ }
+ ],
+ "social_media_links": {
+ "linkedin": "https://www.linkedin.com/company/101881123",
+ "twitter": "https://x.com/scrapegraphai",
+ "github": "https://github.com/ScrapeGraphAI/Scrapegraph-ai"
+ }
}
```
-
Birden fazla sayfadan bilgi çıkarmak, Python scriptleri oluşturmak veya hatta ses dosyaları oluşturmak için kullanılabilecek diğer süreçler de vardır.
| Süreç Adı | Açıklama |
@@ -91,38 +155,13 @@ Bu süreçlerin her biri için çoklu versiyon vardır. Bu, LLM çağrılarını
Yerel modelleri kullanmak istiyorsanız, [Ollama](https://ollama.com/) kurulu olduğundan ve **ollama pull** komutunu kullanarak modelleri indirdiğinizden emin olun.
-## 🔍 Demo
-
-Resmi Streamlit demosu:
-
-[![My Skills](https://skillicons.dev/icons?i=react)](https://scrapegraph-ai-web-dashboard.streamlit.app)
-Google Colab kullanarak doğrudan web üzerinde deneyin:
+## 📖 Dokümantasyon
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing)
-## 📖 Dokümantasyon
-
ScrapeGraphAI dokümantasyonuna [buradan](https://scrapegraph-ai.readthedocs.io/en/latest/) ulaşabilirsiniz.
-
-Ayrıca Docusaurus'a [buradan](https://scrapegraph-doc.onrender.com/) göz atın.
-
-## 🏆 Sponsorlar
-
-<div style="text-align: center;">
- <a href="https://2ly.link/1zaXG">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/browserbase_logo.png" alt="Browserbase" style="width: 10%;">
- </a>
- <a href="https://2ly.link/1zNiz">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/serp_api_logo.png" alt="SerpAPI" style="width: 10%;">
- </a>
- <a href="https://2ly.link/1zNj1">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/transparent_stat.png" alt="Stats" style="width: 15%;">
- </a>
- <a href="https://scrape.do">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/scrapedo.png" alt="Stats" style="width: 11%;">
- </a>
-</div>
+Ayrıca Docusaurus'a [buradan](https://docs-oss.scrapegraphai.com/) göz atın.
## 🤝 Katkıda Bulunun
@@ -134,8 +173,27 @@ Lütfen [katkıda bulunma yönergelerine](https://github.com/VinciGit00/Scrapegr
[![My Skills](https://skillicons.dev/icons?i=linkedin)](https://www.linkedin.com/company/scrapegraphai/)
[![My Skills](https://skillicons.dev/icons?i=twitter)](https://twitter.com/scrapegraphai)
-## 📈 Telemetri
+## 🔗 ScrapeGraph API & SDKs
+Sisteminize ScrapeGraph'u entegre etmek için hızlı bir çözüm arıyorsanız, güçlü API'mizi [burada!](https://dashboard.scrapegraphai.com/login) kontrol edin
+
+[![API Banner](https://raw.githubusercontent.com/ScrapeGraphAI/Scrapegraph-ai/main/docs/assets/api_banner.png)](https://dashboard.scrapegraphai.com/login)
+
+Python ve Node.js için SDK'lar sunuyoruz, böylece projelerinize kolayca entegre edebilirsiniz. Aşağıda kontrol edin:
+
+| SDK | Dil | GitHub Bağlantısı |
+|-----------|----------|-----------------------------------------------------------------------------|
+| Python SDK | Python | [scrapegraph-py](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-py) |
+| Node.js SDK | Node.js | [scrapegraph-js](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-js) |
+
+Resmi API Dokümantasyonu [burada](https://docs.scrapegraphai.com/) bulunabilir.
+## 🔥 Kıyaslama
+
+Firecrawl kıyaslamasına göre [Firecrawl benchmark](https://github.com/firecrawl/scrape-evals/pull/3), ScrapeGraph piyasadaki en iyi getirici!
+
+![here](assets/histogram.png)
+
+## 📈 Telemetri
Paketimizin kalitesini ve kullanıcı deneyimini geliştirmek amacıyla anonim kullanım metrikleri topluyoruz. Bu veriler, iyileştirmelere öncelik vermemize ve uyumluluğu sağlamamıza yardımcı olur. İsterseniz, SCRAPEGRAPHAI_TELEMETRY_ENABLED=false ortam değişkenini ayarlayarak devre dışı bırakabilirsiniz. Daha fazla bilgi için lütfen [buraya](https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/telemetry.html) bakın.
## ❤️ Katkıda Bulunanlar
@@ -148,24 +206,19 @@ Kütüphanemizi araştırma amaçlı kullandıysanız, lütfen bizi aşağıdaki
```text
@misc{scrapegraph-ai,
- author = {, Lorenzo Padoan, Marco Vinciguerra},
+ author = {Lorenzo Padoan, Marco Vinciguerra},
title = {Scrapegraph-ai},
year = {2024},
url = {https://github.com/VinciGit00/Scrapegraph-ai},
- note = {A Python library for scraping leveraging large language models}
+ note = {Büyük dil modellerinden yararlanan kazıma için bir Python kütüphanesi}
}
```
## Yazarlar
-<p align="center">
- <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/logo_authors.png" alt="Yazarlar Logosu">
-</p>
-
| | İletişim Bilgileri |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Marco Vinciguerra | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/marco-vinciguerra-7ba365242/) |
-| | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/perinim/) |
| Lorenzo Padoan | [![Linkedin Badge](https://img.shields.io/badge/-Linkedin-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/lorenzo-padoan-4521a2154/) |
## 📜 Lisans
@@ -175,4 +228,8 @@ ScrapeGraphAI, MIT Lisansı altında lisanslanmıştır. Daha fazla bilgi için
## Teşekkürler
- Projeye katkıda bulunan tüm katılımcılara ve açık kaynak topluluğuna destekleri için teşekkür ederiz.
-- ScrapeGraphAİ, yalnızca veri arama ve araştırma amacıyla kullanılmak üzere tasarlanmıştır. Kütüphanenin kötüye kullanılmasından sorumlu değiliz.
+- ScrapeGraphAI, yalnızca veri arama ve araştırma amacıyla kullanılmak üzere tasarlanmıştır. Kütüphanenin kötüye kullanılmasından sorumlu değiliz.
+
+Made with ❤️ by [ScrapeGraph AI](https://scrapegraphai.com)
+
+[Scarf tracking](https://static.scarf.sh/a.png?x-pxid=102d4b8c-cd6a-4b9e-9a16-d6d141b9212d)