Skip to content

Commit bc881b4

Browse files
committed
refctoring of the code
1 parent bfdd86f commit bc881b4

18 files changed

+17
-119
lines changed

scrapegraphai/graphs/csv_scraper_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Module for creating the smart scraper
33
"""
4-
54
from typing import Optional
65
from pydantic import BaseModel
76
from .base_graph import BaseGraph

scrapegraphai/graphs/csv_scraper_multi_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
CSVScraperMultiGraph Module
33
"""
4-
54
from copy import deepcopy
65
from typing import List, Optional
76
from pydantic import BaseModel

scrapegraphai/graphs/json_scraper_multi_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
JSONScraperMultiGraph Module
33
"""
4-
54
from copy import deepcopy
65
from typing import List, Optional
76
from pydantic import BaseModel

scrapegraphai/graphs/omni_scraper_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
OmniScraperGraph Module
33
"""
4-
54
from typing import Optional
65
from pydantic import BaseModel
76
from .base_graph import BaseGraph

scrapegraphai/graphs/omni_search_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
OmniSearchGraph Module
33
"""
4-
54
from copy import deepcopy
65
from typing import Optional
76
from pydantic import BaseModel

scrapegraphai/graphs/pdf_scraper_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
"""
32
PDFScraperGraph Module
43
"""

scrapegraphai/graphs/pdf_scraper_multi_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
PdfScraperMultiGraph Module
33
"""
4-
54
from copy import deepcopy
65
from typing import List, Optional
76
from pydantic import BaseModel

scrapegraphai/graphs/script_creator_multi_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
ScriptCreatorMultiGraph Module
33
"""
4-
54
from typing import List, Optional
65
from pydantic import BaseModel
76
from .base_graph import BaseGraph

scrapegraphai/graphs/search_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
SearchGraph Module
33
"""
4-
54
from copy import deepcopy
65
from typing import Optional, List
76
from pydantic import BaseModel

scrapegraphai/graphs/smart_scraper_multi_concat_graph.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
SmartScraperMultiGraph Module
33
"""
4-
54
from copy import deepcopy
65
from typing import List, Optional
76
from pydantic import BaseModel
@@ -14,7 +13,6 @@
1413
)
1514
from ..utils.copy import safe_deepcopy
1615

17-
1816
class SmartScraperMultiConcatGraph(AbstractGraph):
1917
"""
2018
SmartScraperMultiGraph is a scraping pipeline that scrapes a
@@ -43,9 +41,8 @@ class SmartScraperMultiConcatGraph(AbstractGraph):
4341
>>> result = search_graph.run()
4442
"""
4543

46-
def __init__(self, prompt: str, source: List[str],
44+
def __init__(self, prompt: str, source: List[str],
4745
config: dict, schema: Optional[BaseModel] = None):
48-
4946
self.copy_config = safe_deepcopy(config)
5047

5148
self.copy_schema = deepcopy(schema)

0 commit comments

Comments
 (0)