Skip to content

Commit 8f1fbe7

Browse files
committed
minor changes
1 parent df271b6 commit 8f1fbe7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

examples/openai/deep_scraper_openai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@
4343
# ************************************************
4444

4545
graph_exec_info = deep_scraper_graph.get_execution_info()
46-
print(prettify_exec_info(graph_exec_info))
46+
print(deep_scraper_graph.get_state("relevant_links"))
47+
print(prettify_exec_info(graph_exec_info))

scrapegraphai/graphs/deep_scraper_graph.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ class DeepScraperGraph(AbstractGraph):
3939
source (str): The source of the graph.
4040
config (dict): Configuration parameters for the graph.
4141
Example:
42-
>>> smart_scraper = DeepScraperGraph(
42+
>>> deep_scraper = DeepScraperGraph(
4343
... "List me all the job titles and detailed job description.",
44-
... "https://en.wikipedia.org/wiki/Chioggia",
44+
... "https://www.google.com/about/careers/applications/jobs/results/?location=Bangalore%20India",
4545
... {"llm": {"model": "gpt-3.5-turbo"}}
4646
... )
47-
>>> result = smart_scraper.run()
47+
>>> result = deep_scraper.run()
4848
)
4949
"""
5050

scrapegraphai/utils/cleanup_html.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ def cleanup_html(html_content: str, base_url: str) -> str:
4545
if body_content:
4646
# Minify the HTML within the body tag
4747
minimized_body = minify(str(body_content))
48-
print("Came here")
4948
return "Title: " + title + ", Body: " + minimized_body + ", Links: " + str(link_urls)
5049

5150

52-
print("No Came here")
5351
return "Title: " + title + ", Body: No body content found" + ", Links: " + str(link_urls)

0 commit comments

Comments
 (0)