bugfix: ScrapeWebsiteTool encoding

fixed problem with garbage output of ScrapeWebsiteTool on some websites
This commit is contained in:
Jakub Strnad
2024-07-08 15:24:26 +02:00
committed by GitHub
parent f056764132
commit 65855cbe56

View File

@@ -25,8 +25,7 @@ class ScrapeWebsiteTool(BaseTool):
'Accept-Language': 'en-US,en;q=0.9',
'Referer': 'https://www.google.com/',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'Accept-Encoding': 'gzip, deflate, br'
'Upgrade-Insecure-Requests': '1'
}
def __init__(self, website_url: Optional[str] = None, cookies: Optional[dict] = None, **kwargs):