Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ version = "1.66.0"
description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."
authors = [
{ name = "Marco Vinciguerra", email = "mvincig11@gmail.com" },
{ name = "Lorenzo Padoan", email = "lorenzo.padoan977@gmail.com" }
{ name = "Lorenzo Padoan", email = "lorenzo.padoan977@gmail.com" },
]

dependencies = [
"langchain>=0.3.0",
"langchain-openai>=0.1.22",
"langchain-mistralai>=0.1.12",
"langchain_community>=0.2.9",
"langchain-aws>=0.1.3",
"langchain-ollama>=0.1.3",
"html2text>=2024.2.26",
"beautifulsoup4>=4.12.3",
"python-dotenv>=1.0.1",
"tiktoken>=0.7",
"tqdm>=4.66.4",
"minify-html>=0.15.0",
"free-proxy>=1.1.1",
"playwright>=1.43.0",
"langchain>=1.2.0",
"langchain-openai>=1.1.6",
"langchain-mistralai>=1.1.1",
"langchain_community>=0.3.31",
"langchain-aws>=1.1.0",
"langchain-ollama>=1.0.1",
"html2text>=2025.4.15",
"beautifulsoup4>=4.14.3",
"python-dotenv>=1.2.1",
"tiktoken>=0.12.0",
"tqdm>=4.67.1",
"minify-html>=0.18.1",
"free-proxy>=1.1.3",
"playwright>=1.57.0",
"undetected-playwright>=0.3.0",
"semchunk>=2.2.0",
"async-timeout>=4.0.3",
"simpleeval>=1.0.0",
"jsonschema>=4.23.0",
"duckduckgo-search>=7.2.1",
"pydantic>=2.10.2",
"scrapegraph-py>=0.1.0",
"semchunk>=3.2.5",
"async-timeout>=5.0.1",
"simpleeval>=1.0.3",
"jsonschema>=4.25.1",
"duckduckgo-search>=8.1.1",
"pydantic>=2.12.5",
"scrapegraph-py>=1.44.0",
]

readme = "README.md"
Expand All @@ -56,7 +56,7 @@ keywords = [
"web scraping tool",
"webscraping",
"graph",
"llm"
"llm",
]
classifiers = [
"Intended Audience :: Developers",
Expand Down Expand Up @@ -95,7 +95,7 @@ dev-dependencies = [
"isort>=5.13.2",
"pre-commit>=3.6.0",
"mypy>=1.8.0",
"types-setuptools>=75.1.0"
"types-setuptools>=75.1.0",
]

[tool.black]
Expand All @@ -110,7 +110,7 @@ line-length = 88

[tool.ruff.lint]
select = ["F", "E", "W", "C"]
ignore = ["E203", "E501", "C901"] # Ignore conflicts with Black
ignore = ["E203", "E501", "C901"] # Ignore conflicts with Black

[tool.mypy]
python_version = "3.10"
Expand Down
11 changes: 7 additions & 4 deletions scrapegraphai/graphs/abstract_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@
from abc import ABC, abstractmethod
from typing import Optional, Type

from langchain_core.language_models.chat_models import init_chat_model
from langchain.chat_models import init_chat_model
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import path has been changed from "langchain_core.language_models.chat_models" to "langchain.chat_models". This change may be incompatible with the dependency upgrade to langchain>=1.2.0. The "init_chat_model" function in langchain 1.x is typically imported from "langchain_core.language_models.chat_models", not from "langchain.chat_models". Please verify that this import path is correct for the new langchain version.

Suggested change
from langchain.chat_models import init_chat_model
from langchain_core.language_models.chat_models import init_chat_model

Copilot uses AI. Check for mistakes.
from langchain_core.rate_limiters import InMemoryRateLimiter
from pydantic import BaseModel

from ..helpers import models_tokens
from ..models import CLoD, DeepSeek, Nvidia, OneApi, XAI
from ..utils.logging import set_verbosity_info, set_verbosity_warning, get_logger
from ..models import XAI, CLoD, DeepSeek, Nvidia, OneApi
from ..utils.logging import get_logger, set_verbosity_info, set_verbosity_warning

logger = get_logger(__name__)

# ANSI escape sequence for hyperlink
CLICKABLE_URL = "\033]8;;https://scrapegraphai.com\033\\https://scrapegraphai.com\033]8;;\033\\"
CLICKABLE_URL = (
"\033]8;;https://scrapegraphai.com\033\\https://scrapegraphai.com\033]8;;\033\\"
)


class AbstractGraph(ABC):
"""
Expand Down
Loading
Loading