Update Modules/Web_Fetch.py
Browse files- Modules/Web_Fetch.py +287 -280
Modules/Web_Fetch.py
CHANGED
|
@@ -1,280 +1,287 @@
|
|
| 1 |
-
from __future__ import annotations
|
| 2 |
-
|
| 3 |
-
import re
|
| 4 |
-
from typing import Annotated, Dict, List, Tuple
|
| 5 |
-
from urllib.parse import urlparse, urljoin
|
| 6 |
-
|
| 7 |
-
import gradio as gr
|
| 8 |
-
import requests
|
| 9 |
-
from bs4 import BeautifulSoup
|
| 10 |
-
from markdownify import markdownify as md
|
| 11 |
-
from readability import Document
|
| 12 |
-
|
| 13 |
-
from app import _fetch_rate_limiter, _log_call_end, _log_call_start, _truncate_for_log
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
"
|
| 20 |
-
"Accept": "
|
| 21 |
-
"Accept
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
text = re.sub(r"\
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
for
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
or full_soup.find("
|
| 114 |
-
or full_soup.find("
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
markdown_text =
|
| 120 |
-
markdown_text = re.sub(r"\
|
| 121 |
-
markdown_text = re.sub(r"[
|
| 122 |
-
markdown_text =
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
"
|
| 135 |
-
"
|
| 136 |
-
"
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
"
|
| 155 |
-
"
|
| 156 |
-
"
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
f"
|
| 163 |
-
f"
|
| 164 |
-
"
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
)
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
result =
|
| 193 |
-
_log_call_end("Web_Fetch", _truncate_for_log(result))
|
| 194 |
-
return result
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
if
|
| 205 |
-
result =
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
),
|
| 245 |
-
gr.
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
"
|
| 266 |
-
"
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
"
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import re
|
| 4 |
+
from typing import Annotated, Dict, List, Tuple
|
| 5 |
+
from urllib.parse import urlparse, urljoin
|
| 6 |
+
|
| 7 |
+
import gradio as gr
|
| 8 |
+
import requests
|
| 9 |
+
from bs4 import BeautifulSoup
|
| 10 |
+
from markdownify import markdownify as md
|
| 11 |
+
from readability import Document
|
| 12 |
+
|
| 13 |
+
from app import _fetch_rate_limiter, _log_call_end, _log_call_start, _truncate_for_log
|
| 14 |
+
from ._docstrings import autodoc
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def _http_get_enhanced(url: str, timeout: int | float = 30, *, skip_rate_limit: bool = False) -> requests.Response:
|
| 18 |
+
headers = {
|
| 19 |
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
| 20 |
+
"Accept-Language": "en-US,en;q=0.9",
|
| 21 |
+
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
|
| 22 |
+
"Accept-Encoding": "gzip, deflate, br",
|
| 23 |
+
"DNT": "1",
|
| 24 |
+
"Connection": "keep-alive",
|
| 25 |
+
"Upgrade-Insecure-Requests": "1",
|
| 26 |
+
}
|
| 27 |
+
if not skip_rate_limit:
|
| 28 |
+
_fetch_rate_limiter.acquire()
|
| 29 |
+
try:
|
| 30 |
+
response = requests.get(
|
| 31 |
+
url,
|
| 32 |
+
headers=headers,
|
| 33 |
+
timeout=timeout,
|
| 34 |
+
allow_redirects=True,
|
| 35 |
+
stream=False,
|
| 36 |
+
)
|
| 37 |
+
response.raise_for_status()
|
| 38 |
+
return response
|
| 39 |
+
except requests.exceptions.Timeout as exc:
|
| 40 |
+
raise requests.exceptions.RequestException("Request timed out. The webpage took too long to respond.") from exc
|
| 41 |
+
except requests.exceptions.ConnectionError as exc:
|
| 42 |
+
raise requests.exceptions.RequestException("Connection error. Please check the URL and your internet connection.") from exc
|
| 43 |
+
except requests.exceptions.HTTPError as exc:
|
| 44 |
+
if response.status_code == 403:
|
| 45 |
+
raise requests.exceptions.RequestException("Access forbidden. The website may be blocking automated requests.") from exc
|
| 46 |
+
if response.status_code == 404:
|
| 47 |
+
raise requests.exceptions.RequestException("Page not found. Please check the URL.") from exc
|
| 48 |
+
if response.status_code == 429:
|
| 49 |
+
raise requests.exceptions.RequestException("Rate limited. Please try again in a few minutes.") from exc
|
| 50 |
+
raise requests.exceptions.RequestException(f"HTTP error {response.status_code}: {exc}") from exc
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def _normalize_whitespace(text: str) -> str:
|
| 54 |
+
text = re.sub(r"[ \t\u00A0]+", " ", text)
|
| 55 |
+
text = re.sub(r"\n\s*\n\s*\n+", "\n\n", text.strip())
|
| 56 |
+
return text.strip()
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def _truncate(text: str, max_chars: int) -> Tuple[str, bool]:
|
| 60 |
+
if max_chars is None or max_chars <= 0 or len(text) <= max_chars:
|
| 61 |
+
return text, False
|
| 62 |
+
return text[:max_chars].rstrip() + " …", True
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def _shorten(text: str, limit: int) -> str:
|
| 66 |
+
if limit <= 0 or len(text) <= limit:
|
| 67 |
+
return text
|
| 68 |
+
return text[: max(0, limit - 1)].rstrip() + "…"
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def _domain_of(url: str) -> str:
|
| 72 |
+
try:
|
| 73 |
+
return urlparse(url).netloc or ""
|
| 74 |
+
except Exception:
|
| 75 |
+
return ""
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
def _extract_links_from_soup(soup: BeautifulSoup, base_url: str) -> str:
|
| 79 |
+
links = []
|
| 80 |
+
for link in soup.find_all("a", href=True):
|
| 81 |
+
href = link.get("href")
|
| 82 |
+
text = link.get_text(strip=True)
|
| 83 |
+
if href.startswith("http"):
|
| 84 |
+
full_url = href
|
| 85 |
+
elif href.startswith("//"):
|
| 86 |
+
full_url = "https:" + href
|
| 87 |
+
elif href.startswith("/"):
|
| 88 |
+
full_url = urljoin(base_url, href)
|
| 89 |
+
else:
|
| 90 |
+
full_url = urljoin(base_url, href)
|
| 91 |
+
if text and href not in ["#", "javascript:void(0)"]:
|
| 92 |
+
links.append(f"- [{text}]({full_url})")
|
| 93 |
+
if not links:
|
| 94 |
+
return "No links found on this page."
|
| 95 |
+
title = soup.find("title")
|
| 96 |
+
title_text = title.get_text(strip=True) if title else "Links from webpage"
|
| 97 |
+
return f"# {title_text}\n\n" + "\n".join(links)
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def _fullpage_markdown_from_soup(full_soup: BeautifulSoup, base_url: str, strip_selectors: str = "") -> str:
|
| 101 |
+
if strip_selectors:
|
| 102 |
+
selectors = [s.strip() for s in strip_selectors.split(",") if s.strip()]
|
| 103 |
+
for selector in selectors:
|
| 104 |
+
try:
|
| 105 |
+
for element in full_soup.select(selector):
|
| 106 |
+
element.decompose()
|
| 107 |
+
except Exception:
|
| 108 |
+
continue
|
| 109 |
+
for element in full_soup.select("script, style, nav, footer, header, aside"):
|
| 110 |
+
element.decompose()
|
| 111 |
+
main = (
|
| 112 |
+
full_soup.find("main")
|
| 113 |
+
or full_soup.find("article")
|
| 114 |
+
or full_soup.find("div", class_=re.compile(r"content|main|post|article", re.I))
|
| 115 |
+
or full_soup.find("body")
|
| 116 |
+
)
|
| 117 |
+
if not main:
|
| 118 |
+
return "No main content found on the webpage."
|
| 119 |
+
markdown_text = md(str(main), heading_style="ATX")
|
| 120 |
+
markdown_text = re.sub(r"\n{3,}", "\n\n", markdown_text)
|
| 121 |
+
markdown_text = re.sub(r"\[\s*\]\([^)]*\)", "", markdown_text)
|
| 122 |
+
markdown_text = re.sub(r"[ \t]+", " ", markdown_text)
|
| 123 |
+
markdown_text = markdown_text.strip()
|
| 124 |
+
title = full_soup.find("title")
|
| 125 |
+
if title and title.get_text(strip=True):
|
| 126 |
+
markdown_text = f"# {title.get_text(strip=True)}\n\n{markdown_text}"
|
| 127 |
+
return markdown_text or "No content could be extracted."
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
def _truncate_markdown(markdown: str, max_chars: int) -> Tuple[str, Dict[str, object]]:
|
| 131 |
+
total_chars = len(markdown)
|
| 132 |
+
if total_chars <= max_chars:
|
| 133 |
+
return markdown, {
|
| 134 |
+
"truncated": False,
|
| 135 |
+
"returned_chars": total_chars,
|
| 136 |
+
"total_chars_estimate": total_chars,
|
| 137 |
+
"next_cursor": None,
|
| 138 |
+
}
|
| 139 |
+
truncated = markdown[:max_chars]
|
| 140 |
+
last_paragraph = truncated.rfind("\n\n")
|
| 141 |
+
if last_paragraph > max_chars * 0.7:
|
| 142 |
+
truncated = truncated[:last_paragraph]
|
| 143 |
+
cursor_pos = last_paragraph
|
| 144 |
+
elif "." in truncated[-100:]:
|
| 145 |
+
last_period = truncated.rfind(".")
|
| 146 |
+
if last_period > max_chars * 0.8:
|
| 147 |
+
truncated = truncated[: last_period + 1]
|
| 148 |
+
cursor_pos = last_period + 1
|
| 149 |
+
else:
|
| 150 |
+
cursor_pos = len(truncated)
|
| 151 |
+
else:
|
| 152 |
+
cursor_pos = len(truncated)
|
| 153 |
+
metadata = {
|
| 154 |
+
"truncated": True,
|
| 155 |
+
"returned_chars": len(truncated),
|
| 156 |
+
"total_chars_estimate": total_chars,
|
| 157 |
+
"next_cursor": cursor_pos,
|
| 158 |
+
}
|
| 159 |
+
truncated = truncated.rstrip()
|
| 160 |
+
truncation_notice = (
|
| 161 |
+
"\n\n---\n"
|
| 162 |
+
f"**Content Truncated:** Showing {metadata['returned_chars']:,} of {metadata['total_chars_estimate']:,} characters "
|
| 163 |
+
f"({(metadata['returned_chars']/metadata['total_chars_estimate']*100):.1f}%)\n"
|
| 164 |
+
f"**Next cursor:** {metadata['next_cursor']} (use this value with offset parameter for continuation)\n"
|
| 165 |
+
"---"
|
| 166 |
+
)
|
| 167 |
+
return truncated + truncation_notice, metadata
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
@autodoc(
|
| 171 |
+
summary=(
|
| 172 |
+
"Fetch a webpage and return clean Markdown or a list of links, with max length and pagination via offset."
|
| 173 |
+
),
|
| 174 |
+
returns="Markdown content (or links) possibly with a truncation notice when max_chars is exceeded.",
|
| 175 |
+
)
|
| 176 |
+
def Web_Fetch(
|
| 177 |
+
url: Annotated[str, "The absolute URL to fetch (must return HTML)."],
|
| 178 |
+
max_chars: Annotated[int, "Maximum characters to return (0 = no limit, full page content)."] = 3000,
|
| 179 |
+
strip_selectors: Annotated[str, "CSS selectors to remove (comma-separated, e.g., '.header, .footer, nav')."] = "",
|
| 180 |
+
url_scraper: Annotated[bool, "Extract only links from the page instead of content."] = False,
|
| 181 |
+
offset: Annotated[int, "Character offset to start from (for pagination, use next_cursor from previous call)."] = 0,
|
| 182 |
+
) -> str:
|
| 183 |
+
_log_call_start(
|
| 184 |
+
"Web_Fetch",
|
| 185 |
+
url=url,
|
| 186 |
+
max_chars=max_chars,
|
| 187 |
+
strip_selectors=strip_selectors,
|
| 188 |
+
url_scraper=url_scraper,
|
| 189 |
+
offset=offset,
|
| 190 |
+
)
|
| 191 |
+
if not url or not url.strip():
|
| 192 |
+
result = "Please enter a valid URL."
|
| 193 |
+
_log_call_end("Web_Fetch", _truncate_for_log(result))
|
| 194 |
+
return result
|
| 195 |
+
try:
|
| 196 |
+
resp = _http_get_enhanced(url)
|
| 197 |
+
resp.raise_for_status()
|
| 198 |
+
except requests.exceptions.RequestException as exc:
|
| 199 |
+
result = f"An error occurred: {exc}"
|
| 200 |
+
_log_call_end("Web_Fetch", _truncate_for_log(result))
|
| 201 |
+
return result
|
| 202 |
+
final_url = str(resp.url)
|
| 203 |
+
ctype = resp.headers.get("Content-Type", "")
|
| 204 |
+
if "html" not in ctype.lower():
|
| 205 |
+
result = f"Unsupported content type for extraction: {ctype or 'unknown'}"
|
| 206 |
+
_log_call_end("Web_Fetch", _truncate_for_log(result))
|
| 207 |
+
return result
|
| 208 |
+
resp.encoding = resp.encoding or resp.apparent_encoding
|
| 209 |
+
html = resp.text
|
| 210 |
+
full_soup = BeautifulSoup(html, "lxml")
|
| 211 |
+
if url_scraper:
|
| 212 |
+
result = _extract_links_from_soup(full_soup, final_url)
|
| 213 |
+
if offset > 0:
|
| 214 |
+
result = result[offset:]
|
| 215 |
+
if max_chars > 0 and len(result) > max_chars:
|
| 216 |
+
result, _ = _truncate_markdown(result, max_chars)
|
| 217 |
+
else:
|
| 218 |
+
full_result = _fullpage_markdown_from_soup(full_soup, final_url, strip_selectors)
|
| 219 |
+
if offset > 0:
|
| 220 |
+
if offset >= len(full_result):
|
| 221 |
+
result = (
|
| 222 |
+
f"Offset {offset} exceeds content length ({len(full_result)} characters). "
|
| 223 |
+
f"Content ends at position {len(full_result)}."
|
| 224 |
+
)
|
| 225 |
+
_log_call_end("Web_Fetch", _truncate_for_log(result))
|
| 226 |
+
return result
|
| 227 |
+
result = full_result[offset:]
|
| 228 |
+
else:
|
| 229 |
+
result = full_result
|
| 230 |
+
if max_chars > 0 and len(result) > max_chars:
|
| 231 |
+
result, metadata = _truncate_markdown(result, max_chars)
|
| 232 |
+
if offset > 0:
|
| 233 |
+
metadata["total_chars_estimate"] = len(full_result)
|
| 234 |
+
metadata["next_cursor"] = offset + metadata["next_cursor"] if metadata["next_cursor"] else None
|
| 235 |
+
_log_call_end("Web_Fetch", f"chars={len(result)}, url_scraper={url_scraper}, offset={offset}")
|
| 236 |
+
return result
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
def build_interface() -> gr.Interface:
|
| 240 |
+
return gr.Interface(
|
| 241 |
+
fn=Web_Fetch,
|
| 242 |
+
inputs=[
|
| 243 |
+
gr.Textbox(label="URL", placeholder="https://example.com/article", max_lines=1),
|
| 244 |
+
gr.Slider(minimum=0, maximum=20000, value=3000, step=100, label="Max Characters", info="0 = no limit (full page), default 3000"),
|
| 245 |
+
gr.Textbox(
|
| 246 |
+
label="Strip Selectors",
|
| 247 |
+
placeholder=".header, .footer, nav, .sidebar",
|
| 248 |
+
value="",
|
| 249 |
+
max_lines=1,
|
| 250 |
+
info="CSS selectors to remove (comma-separated)",
|
| 251 |
+
),
|
| 252 |
+
gr.Checkbox(label="URL Scraper", value=False, info="Extract only links instead of content"),
|
| 253 |
+
gr.Slider(
|
| 254 |
+
minimum=0,
|
| 255 |
+
maximum=100000,
|
| 256 |
+
value=0,
|
| 257 |
+
step=100,
|
| 258 |
+
label="Offset",
|
| 259 |
+
info="Character offset to start from (use next_cursor from previous call for pagination)",
|
| 260 |
+
),
|
| 261 |
+
],
|
| 262 |
+
outputs=gr.Markdown(label="Extracted Content"),
|
| 263 |
+
title="Web Fetch",
|
| 264 |
+
description=(
|
| 265 |
+
"<div style=\"text-align:center\">Convert any webpage to clean Markdown format with precision controls, "
|
| 266 |
+
"or extract all links. Supports custom element removal, length limits, and pagination with offset.</div>"
|
| 267 |
+
),
|
| 268 |
+
api_description=(
|
| 269 |
+
"Fetch a web page and return it converted to Markdown format or extract links with configurable options. "
|
| 270 |
+
"Includes enhanced truncation with detailed metadata and pagination support via offset parameter. "
|
| 271 |
+
"Parameters: url (str - absolute URL), max_chars (int - 0=no limit, default 3000), "
|
| 272 |
+
"strip_selectors (str - CSS selectors to remove, comma-separated), "
|
| 273 |
+
"url_scraper (bool - extract only links instead of content, default False), "
|
| 274 |
+
"offset (int - character offset for pagination, use next_cursor from previous call). "
|
| 275 |
+
"When content is truncated, returns detailed metadata including truncated status, character counts, "
|
| 276 |
+
"and next_cursor for continuation. When url_scraper=True, returns formatted list of all links found on the page."
|
| 277 |
+
),
|
| 278 |
+
flagging_mode="never",
|
| 279 |
+
)
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
__all__ = [
|
| 283 |
+
"Web_Fetch",
|
| 284 |
+
"build_interface",
|
| 285 |
+
"_http_get_enhanced",
|
| 286 |
+
"_fullpage_markdown_from_soup",
|
| 287 |
+
]
|