Skip to content

Commit a200f59

Browse files
committed
refactoring of examples
1 parent 95d00e9 commit a200f59

File tree

253 files changed

+385
-748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+385
-748
lines changed

examples/anthropic/code_generator_graph_anthropic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Basic example of scraping pipeline using Code Generator with schema
33
"""
4-
54
import os, json
65
from typing import List
76
from dotenv import load_dotenv

examples/anthropic/csv_scraper_anthropic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Basic example of scraping pipeline using CSVScraperGraph from CSV documents
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
import pandas as pd

examples/anthropic/csv_scraper_graph_multi_anthropic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Basic example of scraping pipeline using CSVScraperMultiGraph from CSV documents
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
import pandas as pd

examples/anthropic/custom_graph_anthropic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
"""
22
Example of custom graph using existing nodes
33
"""
4-
54
import os
65
from dotenv import load_dotenv
7-
86
from langchain_anthropic import ChatAnthropic
97
from scrapegraphai.graphs import BaseGraph
108
from scrapegraphai.nodes import FetchNode, ParseNode, GenerateAnswerNode, RobotsNode

examples/anthropic/json_scraper_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
22
Basic example of scraping pipeline using JSONScraperGraph from JSON documents
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
from scrapegraphai.graphs import JSONScraperGraph
87
from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
8+
99
load_dotenv()
1010

1111
# ************************************************

examples/anthropic/rate_limit_anthropic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Basic example of scraping pipeline using SmartScraper while setting an API rate limit.
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
from scrapegraphai.graphs import SmartScraperGraph

examples/anthropic/scrape_plain_text_anthropic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Basic example of scraping pipeline using SmartScraper from text
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
from scrapegraphai.graphs import SmartScraperGraph

examples/anthropic/script_generator_anthropic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Basic example of scraping pipeline using ScriptCreatorGraph
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
from scrapegraphai.graphs import ScriptCreatorGraph

examples/anthropic/script_multi_generator_anthropic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Basic example of scraping pipeline using ScriptCreatorGraph
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
from scrapegraphai.graphs import ScriptCreatorMultiGraph

examples/anthropic/search_graph_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
22
Example of Search Graph
33
"""
4-
54
import os
65
from dotenv import load_dotenv
76
from scrapegraphai.graphs import SearchGraph
87
from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
8+
99
load_dotenv()
1010

1111
# ************************************************

0 commit comments

Comments
 (0)