Pull-md Tool Usage
This guide shows how to use the PullMd component for converting URLs into Markdown.
Installation
%pip install -qU pull-md langchain-community
Using PullMdAPIWrapper
from langchain_community.utilities import PullMdAPIWrapper
pull_md = PullMdAPIWrapper()
markdown = pull_md.convert_url_to_markdown("http://example.com")
print(markdown)
API Reference:PullMdAPIWrapper
# Example Domain
This domain is established to be used for illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
More information...
Using PullMdQueryRun Tool
from langchain_community.tools import PullMdQueryRun
pull_md_tool = PullMdQueryRun()
markdown = pull_md_tool.invoke({'url': 'http://example.com'})
print(markdown)
API Reference:PullMdQueryRun
# Example Domain
This domain is established to be used for illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
More information...
You can directly pass the URL to the tool, and it will handle the conversion process internally, simplifying integration into larger workflows.
Related
- Tool conceptual guide
- Tool how-to guides