MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Tutorial-Website-Chatbot / exec

Method exec

nodes.py:20–24  ·  view source on GitHub ↗

Process a single URL to extract content and links

(self, url_data)

Source from the content-addressed store, hash-verified

18 return urls_to_crawl
19
20 def exec(self, url_data):
21 """Process a single URL to extract content and links"""
22 url_idx, url = url_data
23 content, links = crawl_webpage(url)
24 return url_idx, content, links
25
26 def exec_fallback(self, url_data, exc):
27 """Fallback when crawling fails. The 'None' for links signals a failure."""

Callers

nothing calls this directly

Calls 1

crawl_webpageFunction · 0.90

Tested by

no test coverage detected