Skip to content

Logger integration #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 24, 2024
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
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.19
3.10.14
1 change: 1 addition & 0 deletions examples/local_models/smart_scraper_ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# "base_url": "http://localhost:11434", # set ollama URL arbitrarily
},
"verbose": True,
"headless": False
}

# ************************************************
Expand Down
4 changes: 2 additions & 2 deletions examples/openai/smart_scraper_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
graph_config = {
"llm": {
"api_key": openai_key,
"model": "gpt-4o",
"model": "gpt-3.5-turbo",
},
"verbose": True,
"verbose": False,
"headless": False,
}

Expand Down
2 changes: 1 addition & 1 deletion examples/single_node/robot_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

graph_config = {
"llm": {
"model": "ollama/llama3",
"model_name": "ollama/llama3",
"temperature": 0,
"streaming": True
},
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ graphviz==0.20.3
# via scrapegraphai
greenlet==3.0.3
# via playwright
# via sqlalchemy
groq==0.5.0
# via langchain-groq
grpcio==1.63.0
Expand Down
1 change: 0 additions & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ graphviz==0.20.3
# via scrapegraphai
greenlet==3.0.3
# via playwright
# via sqlalchemy
groq==0.5.0
# via langchain-groq
grpcio==1.63.0
Expand Down
5 changes: 0 additions & 5 deletions scrapegraphai/asdt/__init__.py

This file was deleted.

52 changes: 0 additions & 52 deletions scrapegraphai/asdt/dom_tree.py

This file was deleted.

98 changes: 0 additions & 98 deletions scrapegraphai/asdt/tree.py

This file was deleted.

114 changes: 0 additions & 114 deletions scrapegraphai/asdt/tree_node.py

This file was deleted.

5 changes: 2 additions & 3 deletions scrapegraphai/docloaders/chromium.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import asyncio
import logging
from typing import Any, AsyncIterator, Iterator, List, Optional

from langchain_community.document_loaders.base import BaseLoader
from langchain_core.documents import Document

from ..utils import Proxy, dynamic_import, parse_or_search_proxy
from ..utils import Proxy, dynamic_import, get_logger, parse_or_search_proxy


logger = logging.getLogger(__name__)
logger = get_logger("web-loader")


class ChromiumLoader(BaseLoader):
Expand Down
1 change: 0 additions & 1 deletion scrapegraphai/graphs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
from .pdf_scraper_graph import PDFScraperGraph
from .omni_scraper_graph import OmniScraperGraph
from .omni_search_graph import OmniSearchGraph
from .turbo_scraper import TurboScraperGraph
Loading
Loading