Skip to content
Merged
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
8 changes: 4 additions & 4 deletions scrapegraphai/graphs/smart_scraper_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

from pydantic import BaseModel

# Initialize logger
logger = logging.getLogger(__name__)

from ..nodes import (
ConditionalNode,
FetchNode,
Expand All @@ -21,6 +18,9 @@
from .abstract_graph import AbstractGraph
from .base_graph import BaseGraph

# Initialize logger
logger = logging.getLogger(__name__)


class SmartScraperGraph(AbstractGraph):
"""
Expand Down Expand Up @@ -97,7 +97,7 @@ def _create_graph(self) -> BaseGraph:
)

# Use logging instead of print for better production practices
if 'request_id' in response and 'result' in response:
if "request_id" in response and "result" in response:
logger.info(f"Request ID: {response['request_id']}")
logger.info(f"Result: {response['result']}")
else:
Expand Down
Loading