-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad3be7f
commit ee696d7
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ions/tools/llama-index-tools-scrapegraph/examples/scrapegraph-markdowinify-llama-index.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from llama_index.tools.scrapegraph.base import ScrapegraphToolSpec | ||
|
||
# Initialize the ScrapegraphToolSpec | ||
scrapegraph_tool = ScrapegraphToolSpec() | ||
|
||
# Convert webpage content to markdown | ||
response = scrapegraph_tool.scrapegraph_markdownify( | ||
url="https://scrapegraphai.com/", | ||
api_key="sgai-***" # Replace with your actual API key | ||
) | ||
|
||
# Print the markdown content | ||
print("Markdown Content:") | ||
print(response) |
2 changes: 1 addition & 1 deletion
2
...graph/examples/scrapegraph-llama-index.py → ...es/scrapegraph-smartscraper-lama-index.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters