diff --git a/modules/web_search.py b/modules/web_search.py index 5b14be55..401a42bb 100644 --- a/modules/web_search.py +++ b/modules/web_search.py @@ -29,6 +29,8 @@ def download_web_page(url, timeout=10): # Initialize the HTML to Markdown converter h = html2text.HTML2Text() h.body_width = 0 + h.ignore_images = True + h.ignore_links = True # Convert the HTML to Markdown markdown_text = h.handle(response.text)