Skip to content

Commit b09a583

Browse files
committed
codebeaver/pre/beta-963 - .
1 parent 5e944cc commit b09a583

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2233
-1095
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,6 @@ cython_debug/
192192
.DS_Store
193193

194194
dev.ipynb
195+
196+
# CodeBeaver reports and artifacts
197+
.codebeaver

examples/ScrapegraphAI_cookbook.ipynb

Lines changed: 902 additions & 903 deletions
Large diffs are not rendered by default.

examples/code_generator_graph/ollama/code_generator_graph_ollama.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Basic example of scraping pipeline using Code Generator with schema
33
"""
44

5-
import json
65
from typing import List
76

87
from dotenv import load_dotenv

examples/custom_graph/ollama/custom_graph_ollama.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
Example of custom graph using existing nodes
33
"""
44

5-
import os
6-
75
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
86

97
from scrapegraphai.graphs import BaseGraph
108
from scrapegraphai.nodes import (
119
FetchNode,
1210
GenerateAnswerNode,
1311
ParseNode,
14-
RAGNode,
1512
RobotsNode,
1613
)
1714

examples/extras/chromium_selenium.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
ChromiumLoader,
1010
)
1111
from scrapegraphai.graphs import SmartScraperGraph
12-
from scrapegraphai.utils import prettify_exec_info
1312

1413
# Load environment variables for API keys
1514
load_dotenv()

examples/extras/no_cut.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import json
6-
import os
76

87
from scrapegraphai.graphs import SmartScraperGraph
98
from scrapegraphai.utils import prettify_exec_info

examples/extras/serch_graph_scehma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Ceos(BaseModel):
4040
# ************************************************
4141

4242
search_graph = SearchGraph(
43-
prompt=f"Who is the ceo of Appke?",
43+
prompt="Who is the ceo of Appke?",
4444
schema=Ceos,
4545
config=graph_config,
4646
)

examples/script_generator_graph/ollama/script_multi_generator_ollama.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Basic example of scraping pipeline using ScriptCreatorGraph
33
"""
44

5-
import os
6-
75
from dotenv import load_dotenv
86

97
from scrapegraphai.graphs import ScriptCreatorMultiGraph

scrapegraphai/builders/graph_builder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ def _create_extraction_chain(self):
113113
{nodes_description}
114114
115115
Based on the user's input: "{input}", identify the essential nodes required for the task and suggest a graph configuration that outlines the flow between the chosen nodes.
116-
""".format(
117-
nodes_description=self.nodes_description, input="{input}"
118-
)
116+
""".format(nodes_description=self.nodes_description, input="{input}")
119117
extraction_prompt = ChatPromptTemplate.from_template(
120118
create_graph_prompt_template
121119
)

scrapegraphai/docloaders/scrape_do.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
Scrape_do module
33
"""
44

5+
import os
56
import urllib.parse
67

78
import requests
8-
import os
99
import urllib3
1010

1111
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

0 commit comments

Comments
 (0)