Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import urllib.request
import httpx
from typing import List

from defusedxml.ElementTree import fromstring
Expand Down Expand Up @@ -30,9 +30,9 @@ def __init__(self, html_to_text: bool = False, limit: int = 10) -> None:
self._limit = limit

def _load_sitemap(self, sitemap_url: str) -> str:
sitemap_url_request = urllib.request.urlopen(sitemap_url)
sitemap_url_request = httpx.get(sitemap_url)

return sitemap_url_request.read()
return sitemap_url_request.content

def _parse_sitemap(self, raw_sitemap: str, filter_locs: str = None) -> list:
sitemap = fromstring(raw_sitemap)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dev = [

[project]
name = "llama-index-readers-web"
version = "0.4.1"
version = "0.4.2"
description = "llama-index readers web integration"
authors = [{name = "Your Name", email = "[email protected]"}]
requires-python = ">=3.9,<4.0"
Expand Down
Loading