Skip to content

Python scraper based on AI

Merge branch 'main' into pre/beta

VinciGit00d6f5ca874f6d
diff --cc docs/source/conf.py
index 60b871a9,3f323d6a..a64cfb33
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@@ -31,19 -29,4 +31,19 @@@ exclude_patterns = [
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
-html_theme = 'sphinx_rtd_theme'
+# html_theme = 'sphinx_rtd_theme'
+html_theme = 'sphinx_wagtail_theme'
+
+html_theme_options = dict(
+ project_name = "ScrapeGraphAI",
+ logo = "scrapegraphai_logo.png",
+ logo_alt = "ScrapeGraphAI",
+ logo_height = 59,
+ logo_url = "https://scrapegraph-ai.readthedocs.io/en/latest/",
+ logo_width = 45,
+ github_url = "https://github.com/VinciGit00/Scrapegraph-ai/tree/main/docs/source/",
+ footer_links = ",".join(
+ ["Landing Page|https://scrapegraphai.com/",
+ "Docusaurus|https://scrapegraph-doc.onrender.com/docs/intro"]
+ ),
- )
++)
diff --cc pyproject.toml
index c41c3112,2219ec7d..96aefb71
--- a/pyproject.toml
+++ b/pyproject.toml
@@@ -41,26 -23,26 +41,26 @@@ classifiers =
]
[tool.poetry.dependencies]
-python = "^3.9"
+python = ">=3.9, <3.12"
langchain = "0.1.15"
- langchain-openai = "^0.1.6"
- langchain-google-genai = "^1.0.3"
- langchain-groq = "^0.1.3"
- langchain-aws = "^0.1.3"
- langchain-anthropic = "^0.1.11"
- html2text = "^2024.2.26"
- faiss-cpu = "^1.8.0"
- beautifulsoup4 = "^4.12.3"
- pandas = "^2.2.2"
- python-dotenv = "^1.0.1"
- tiktoken = "^0.6.0"
- tqdm = "^4.66.4"
- graphviz = "^0.20.3"
- minify-html = "^0.15.0"
- free-proxy = "^1.1.1"
- playwright = "^1.43.0"
- google = "^3.0.0"
- yahoo-search-py = "^0.3"
+ langchain-openai = "0.1.6"
+ langchain-google-genai = "1.0.3"
+ langchain-groq = "0.1.3"
+ langchain-aws = "0.1.3"
+ langchain-anthropic = "0.1.11"
+ html2text = "2024.2.26"
+ faiss-cpu = "1.8.0"
+ beautifulsoup4 = "4.12.3"
+ pandas = "2.2.2"
+ python-dotenv = "1.0.1"
+ tiktoken = "0.6.0"
+ tqdm = "4.66.4"
+ graphviz = "0.20.3"
+ minify-html = "0.15.0"
+ free-proxy = "1.1.1"
+ playwright = "1.43.0"
+ google = "3.0.0"
+ yahoo-search-py = "0.3"
[tool.poetry.dev-dependencies]
pytest = "8.0.0"
diff --cc scrapegraphai/graphs/abstract_graph.py
index 87b01297,3f9eee24..28eb27b2
--- a/scrapegraphai/graphs/abstract_graph.py
+++ b/scrapegraphai/graphs/abstract_graph.py
@@@ -3,12 -3,11 +3,13 @@@ AbstractGraph Modul
"""
from abc import ABC, abstractmethod
from typing import Optional
+from langchain_aws import BedrockEmbeddings
from langchain_openai import AzureOpenAIEmbeddings, OpenAIEmbeddings
from langchain_community.embeddings import HuggingFaceHubEmbeddings, OllamaEmbeddings
+from langchain_google_genai import GoogleGenerativeAIEmbeddings
from ..helpers import models_tokens
- from ..models import AzureOpenAI, Bedrock, Gemini, Groq, HuggingFace, Ollama, OpenAI, Anthropic, DeepSeek
+ from ..models import AzureOpenAI, Bedrock, Gemini, Groq, HuggingFace, Ollama, OpenAI, Anthropic
+ from langchain_google_genai.embeddings import GoogleGenerativeAIEmbeddings
class AbstractGraph(ABC):