Skip to content

Commit 276ac8b

Browse files
committed
changed name
1 parent 7c1b579 commit 276ac8b

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

examples/gemini/csv_scraper_gemini.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
2-
Basic example of scraping pipeline using CsvScraperGraph from CSV documents
2+
Basic example of scraping pipeline using CSVScraperGraph from CSV documents
33
"""
44

55
import os
66
from dotenv import load_dotenv
77
import pandas as pd
8-
from scrapegraphai.graphs import CsvScraperGraph
8+
from scrapegraphai.graphs import CSVScraperGraph
99
from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
1010

1111
load_dotenv()
@@ -36,10 +36,10 @@
3636
}
3737

3838
# ************************************************
39-
# Create the CsvScraperGraph instance and run it
39+
# Create the CSVScraperGraph instance and run it
4040
# ************************************************
4141

42-
csv_scraper_graph = CsvScraperGraph(
42+
csv_scraper_graph = CSVScraperGraph(
4343
prompt="List me all the last names",
4444
source=str(text), # Pass the content of the file, not the file object
4545
config=graph_config

examples/local_models/Docker/csv_scraper_docker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Basic example of scraping pipeline using CsvScraperGraph from CSV documents
2+
Basic example of scraping pipeline using CSVScraperGraph from CSV documents
33
"""
44

55
import pandas as pd
6-
from scrapegraphai.graphs import CsvScraperGraph
6+
from scrapegraphai.graphs import CSVScraperGraph
77
from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
88

99
# ************************************************
@@ -30,10 +30,10 @@
3030
}
3131

3232
# ************************************************
33-
# Create the CsvScraperGraph instance and run it
33+
# Create the CSVScraperGraph instance and run it
3434
# ************************************************
3535

36-
csv_scraper_graph = CsvScraperGraph(
36+
csv_scraper_graph = CSVScraperGraph(
3737
prompt="List me all the last names",
3838
source=str(text), # Pass the content of the file, not the file object
3939
config=graph_config

examples/local_models/Ollama/csv_scraper_ollama.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Basic example of scraping pipeline using CsvScraperGraph from CSV documents
2+
Basic example of scraping pipeline using CSVScraperGraph from CSV documents
33
"""
44

55
import pandas as pd
6-
from scrapegraphai.graphs import CsvScraperGraph
6+
from scrapegraphai.graphs import CSVScraperGraph
77
from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
88

99
# ************************************************
@@ -32,10 +32,10 @@
3232
}
3333

3434
# ************************************************
35-
# Create the CsvScraperGraph instance and run it
35+
# Create the CSVScraperGraph instance and run it
3636
# ************************************************
3737

38-
csv_scraper_graph = CsvScraperGraph(
38+
csv_scraper_graph = CSVScraperGraph(
3939
prompt="List me all the last names",
4040
source=str(text), # Pass the content of the file, not the file object
4141
config=graph_config

examples/openai/csv_scraper_openai.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
2-
Basic example of scraping pipeline using CsvScraperGraph from CSV documents
2+
Basic example of scraping pipeline using CSVScraperGraph from CSV documents
33
"""
44

55
import os
66
from dotenv import load_dotenv
77
import pandas as pd
8-
from scrapegraphai.graphs import CsvScraperGraph
8+
from scrapegraphai.graphs import CSVScraperGraph
99
from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
1010

1111
load_dotenv()
@@ -29,10 +29,10 @@
2929
}
3030

3131
# ************************************************
32-
# Create the CsvScraperGraph instance and run it
32+
# Create the CSVScraperGraph instance and run it
3333
# ************************************************
3434

35-
csv_scraper_graph = CsvScraperGraph(
35+
csv_scraper_graph = CSVScraperGraph(
3636
prompt="List me all the last names",
3737
source=str(text), # Pass the content of the file, not the file object
3838
config=graph_config

scrapegraphai/graphs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
from .script_creator_graph import ScriptCreatorGraph
99
from .xml_scraper_graph import XMLScraperGraph
1010
from .json_scraper_graph import JSONScraperGraph
11-
from .csv_scraper_graph import CsvScraperGraph
11+
from .csv_scraper_graph import CSVScraperGraph

scrapegraphai/graphs/csv_scraper_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
from .abstract_graph import AbstractGraph
1212

1313

14-
class CsvScraperGraph(AbstractGraph):
14+
class CSVScraperGraph(AbstractGraph):
1515
"""
1616
SmartScraper is a comprehensive web scraping tool that automates the process of extracting
1717
information from web pages using a natural language model to interpret and answer prompts.
1818
"""
1919

2020
def __init__(self, prompt: str, source: str, config: dict):
2121
"""
22-
Initializes the csvScraperGraph with a prompt, source, and configuration.
22+
Initializes the CSVScraperGraph with a prompt, source, and configuration.
2323
"""
2424
super().__init__(prompt, config, source)
2525

0 commit comments

Comments
 (0)