Skip to content

Python scraper based on AI

chore: fix example

Federico Aguzzi9cd9a874f91b
diff --git a/examples/together/depth_search_graph_together.py b/examples/together/depth_search_graph_together.py
index 7a2e7f3e..fb7b4d9e 100644
--- a/examples/together/depth_search_graph_together.py
+++ b/examples/together/depth_search_graph_together.py
@@ -7,13 +7,12 @@ from scrapegraphai.graphs import DepthSearchGraph
load_dotenv()
-openai_key = os.getenv("OPENAI_APIKEY")
+together_key = os.getenv("TOGETHER_APIKEY")
graph_config = {
"llm": {
- "api_key": "***************************",
- "model": "oneapi/qwen-turbo",
- "base_url": "http://127.0.0.1:3000/v1", # 设置 OneAPI URL
+ "model": "togetherai/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
+ "api_key": together_key,
},
"verbose": True,
"headless": False,
diff --git a/requirements-dev.lock b/requirements-dev.lock
index bca5e9c2..61bd3e2b 100644
--- a/requirements-dev.lock
+++ b/requirements-dev.lock
@@ -30,8 +30,6 @@ anyio==4.4.0
astroid==3.2.4
# via pylint
async-timeout==4.0.3
- # via aiohttp
- # via langchain
# via scrapegraphai
attrs==24.2.0
# via aiohttp
@@ -80,9 +78,6 @@ distro==1.9.0
# via openai
docutils==0.19
# via sphinx
-exceptiongroup==1.2.2
- # via anyio
- # via pytest
fastapi==0.112.0
# via burr
fastapi-pagination==0.12.26
@@ -136,6 +131,7 @@ graphviz==0.20.3
# via burr
greenlet==3.0.3
# via playwright
+ # via sqlalchemy
grpcio==1.65.4
# via google-api-core
# via grpcio-status
@@ -504,9 +500,6 @@ tokenizers==0.19.1
# via transformers
toml==0.10.2
# via streamlit
-tomli==2.0.1
- # via pylint
- # via pytest
tomlkit==0.13.0
# via pylint
tornado==6.4.1
@@ -524,8 +517,6 @@ transformers==4.44.2
# via scrapegraphai
typing-extensions==4.12.2
# via altair
- # via anyio
- # via astroid
# via fastapi
# via fastapi-pagination
# via google-generativeai
@@ -540,7 +531,6 @@ typing-extensions==4.12.2
# via sqlalchemy
# via streamlit
# via typing-inspect
- # via uvicorn
typing-inspect==0.9.0
# via dataclasses-json
# via sf-hamilton
diff --git a/requirements.lock b/requirements.lock
index 38be6e68..c2c40996 100644
--- a/requirements.lock
+++ b/requirements.lock
@@ -19,8 +19,6 @@ anyio==4.4.0
# via httpx
# via openai
async-timeout==4.0.3
- # via aiohttp
- # via langchain
# via scrapegraphai
attrs==23.2.0
# via aiohttp
@@ -50,8 +48,6 @@ dill==0.3.8
# via multiprocess
distro==1.9.0
# via openai
-exceptiongroup==1.2.2
- # via anyio
fastembed==0.3.6
# via scrapegraphai
filelock==3.15.4
@@ -91,6 +87,7 @@ googlesearch-python==1.2.5
# via scrapegraphai
greenlet==3.0.3
# via playwright
+ # via sqlalchemy
grpcio==1.65.1
# via google-api-core
# via grpcio-status
@@ -371,7 +368,6 @@ tqdm==4.66.4
transformers==4.44.2
# via scrapegraphai
typing-extensions==4.12.2
- # via anyio
# via google-generativeai
# via huggingface-hub
# via langchain-core