Skip to content

Python scraper based on AI

add docstring files

Marco Vinciguerra4cd5ef296e21
diff --git a/scrapegraphai/__init__.py b/scrapegraphai/__init__.py
index 448d6511..52b4d951 100644
--- a/scrapegraphai/__init__.py
+++ b/scrapegraphai/__init__.py
@@ -1,3 +1,3 @@
"""
- __init__.py file for scrapegraphai folder
+__init__.py file for scrapegraphai folder
"""
diff --git a/scrapegraphai/builders/__init__.py b/scrapegraphai/builders/__init__.py
index 98520fcb..d01175db 100644
--- a/scrapegraphai/builders/__init__.py
+++ b/scrapegraphai/builders/__init__.py
@@ -1,5 +1,5 @@
"""
-__init__.py file for builders folder
+This module contains the builders for constructing various components in the ScrapeGraphAI application.
"""
from .graph_builder import GraphBuilder
diff --git a/scrapegraphai/docloaders/__init__.py b/scrapegraphai/docloaders/__init__.py
index 1010a6be..75049b09 100644
--- a/scrapegraphai/docloaders/__init__.py
+++ b/scrapegraphai/docloaders/__init__.py
@@ -1,4 +1,6 @@
-"""__init__.py file for docloaders folder"""
+"""
+This module handles document loading functionalities for the ScrapeGraphAI application.
+"""
from .chromium import ChromiumLoader
from .browser_base import browser_base_fetch
diff --git a/scrapegraphai/graphs/__init__.py b/scrapegraphai/graphs/__init__.py
index 5b217bc9..b76de1ed 100644
--- a/scrapegraphai/graphs/__init__.py
+++ b/scrapegraphai/graphs/__init__.py
@@ -1,5 +1,5 @@
-"""
-__init__.py file for graphs folder
+"""
+This module defines the graph structures and related functionalities for the ScrapeGraphAI application.
"""
from .abstract_graph import AbstractGraph
diff --git a/scrapegraphai/graphs/document_scraper_graph.py b/scrapegraphai/graphs/document_scraper_graph.py
index 39e54f4a..48664f7f 100644
--- a/scrapegraphai/graphs/document_scraper_graph.py
+++ b/scrapegraphai/graphs/document_scraper_graph.py
@@ -1,5 +1,5 @@
"""
-md_scraper module
+This module implements the Document Scraper Graph for the ScrapeGraphAI application.
"""
from typing import Optional
import logging
diff --git a/scrapegraphai/graphs/omni_scraper_graph.py b/scrapegraphai/graphs/omni_scraper_graph.py
index c15bc065..be909ba2 100644
--- a/scrapegraphai/graphs/omni_scraper_graph.py
+++ b/scrapegraphai/graphs/omni_scraper_graph.py
@@ -1,5 +1,5 @@
"""
-OmniScraperGraph Module
+This module implements the Omni Scraper Graph for the ScrapeGraphAI application.
"""
from typing import Optional
from pydantic import BaseModel
diff --git a/scrapegraphai/helpers/__init__.py b/scrapegraphai/helpers/__init__.py
index 97f0e5d5..a09f13bf 100644
--- a/scrapegraphai/helpers/__init__.py
+++ b/scrapegraphai/helpers/__init__.py
@@ -1,5 +1,5 @@
-"""
-__init__.py for the helpers folder
+"""
+This module provides helper functions and utilities for the ScrapeGraphAI application.
"""
from .nodes_metadata import nodes_metadata
from .schemas import graph_schema
diff --git a/scrapegraphai/models/__init__.py b/scrapegraphai/models/__init__.py
index ce798ad8..abafd224 100644
--- a/scrapegraphai/models/__init__.py
+++ b/scrapegraphai/models/__init__.py
@@ -1,5 +1,5 @@
"""
- __init__.py file for models folder
+This module contains the model definitions used in the ScrapeGraphAI application.
"""
from .openai_itt import OpenAIImageToText
from .openai_tts import OpenAITextToSpeech
diff --git a/scrapegraphai/nodes/base_node.py b/scrapegraphai/nodes/base_node.py
index 8b0f8064..b3df81b6 100644
--- a/scrapegraphai/nodes/base_node.py
+++ b/scrapegraphai/nodes/base_node.py
@@ -1,5 +1,5 @@
-"""
-BaseNode Module
+"""
+This module defines the base node class for the ScrapeGraphAI application.
"""
import re
from abc import ABC, abstractmethod
diff --git a/scrapegraphai/nodes/fetch_node.py b/scrapegraphai/nodes/fetch_node.py
index 4cd549a5..ab40121e 100644
--- a/scrapegraphai/nodes/fetch_node.py
+++ b/scrapegraphai/nodes/fetch_node.py
@@ -1,4 +1,4 @@
-""""
+"""
FetchNode Module
"""
import json
diff --git a/scrapegraphai/prompts/description_node_prompts.py b/scrapegraphai/prompts/description_node_prompts.py
index 86264d0b..802ba247 100644
--- a/scrapegraphai/prompts/description_node_prompts.py
+++ b/scrapegraphai/prompts/description_node_prompts.py
@@ -1,5 +1,5 @@
"""
-description node prompts
+This module contains prompts for description nodes in the ScrapeGraphAI application.
"""
DESCRIPTION_NODE_PROMPT = """
@@ -7,4 +7,4 @@ You are a scraper and you have just scraped the
following content from a website. \n
Please provide a description summary of maximum of 20 words. \n
CONTENT OF THE WEBSITE: {content}
-"""
\ No newline at end of file
+"""