mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-04 21:01:04 +08:00
Merge pull request #1029 from ScrapeGraphAI/copilot/fix-e402-import-issues
Fix E402 import ordering in smart_scraper_graph.py
This commit is contained in:
commit
ece2bb4fa3
@ -7,9 +7,6 @@ from typing import Optional, Type
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
# Initialize logger
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from ..nodes import (
|
||||
ConditionalNode,
|
||||
FetchNode,
|
||||
@ -21,6 +18,9 @@ from ..prompts import REGEN_ADDITIONAL_INFO
|
||||
from .abstract_graph import AbstractGraph
|
||||
from .base_graph import BaseGraph
|
||||
|
||||
# Initialize logger
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SmartScraperGraph(AbstractGraph):
|
||||
"""
|
||||
@ -97,7 +97,7 @@ class SmartScraperGraph(AbstractGraph):
|
||||
)
|
||||
|
||||
# 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user