Skip to content

Python scraper based on AI

fix pylint score

VinciGit0017d1f6a47b1b
diff --git a/scrapegraphai/evaluators/trulens_evaluator.py b/scrapegraphai/evaluators/trulens_evaluator.py
index a06afc65..9b8469ce 100644
--- a/scrapegraphai/evaluators/trulens_evaluator.py
+++ b/scrapegraphai/evaluators/trulens_evaluator.py
@@ -2,6 +2,7 @@
from trulens_eval import Feedback, OpenAI, Tru, Provider, Select, TruBasicApp
from scrapegraphai.graphs import SmartScraperGraph
+
class TrulensEvaluator:
"""
Class for evaluating Trulens using SmartScraperGraph.
@@ -30,10 +31,9 @@ class TrulensEvaluator:
self.openai = OpenAI(api_key=key)
self.f_relevance = Feedback(self.openai.relevance).on_input_output()
self.tru_llm_standalone_recorder = TruBasicApp(self.llm_standalone,
- app_id="smart_scraper_evaluator",
- feedbacks=[self.f_relevance,
- self.f_custom_function])
-
+ app_id="smart_scraper_evaluator",
+ feedbacks=[self.f_relevance,
+ self.f_custom_function])
self.graph_output = []
def evaluate(self, graph_params: list[tuple[str, str, dict]], dashboard: bool = True):
diff --git a/scrapegraphai/graphs/speech_summary_graph.py b/scrapegraphai/graphs/speech_summary_graph.py
index e6b83e74..6baac589 100644
--- a/scrapegraphai/graphs/speech_summary_graph.py
+++ b/scrapegraphai/graphs/speech_summary_graph.py
@@ -34,7 +34,8 @@ class SpeechSummaryGraph:
output_path (str): The file path where the generated MP3 should be saved.
"""
- def __init__(self, prompt: str, url: str, llm_config: dict, output_path: str = "website_summary.mp3"):
+ def __init__(self, prompt: str, url: str, llm_config: dict,
+ output_path: str = "website_summary.mp3"):
"""
Initializes the SmartScraper with a prompt, URL, and language model configuration.
"""