Skip to content

Commit

Permalink
change the webpage size limit to 5,000,000
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Sep 27, 2023
1 parent 695c4fb commit c930669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Join the [Telegram Group](https://t.me/+_01cz9tAkUc1YzZl) chat to share your user experience or report Bugs.

[English](./README.md)|[Simplified Chinese](./README.zh-CN.md)|[Traditional Chinese](./README.zh-TW.md)
[English](./README.md) | [Simplified Chinese](./README.zh-CN.md) | [Traditional Chinese](./README.zh-TW.md)

## ✨ Features

Expand Down
2 changes: 1 addition & 1 deletion agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def Web_crawler(url: str) -> str:
requests.packages.urllib3.disable_warnings()
response = requests.get(url, headers=headers, verify=False, timeout=5, stream=True)
content_length = int(response.headers.get('Content-Length', 0))
if content_length > 500000:
if content_length > 5000000:
print("Skipping large file:", url)
return result
soup = BeautifulSoup(response.text.encode(response.encoding), 'lxml', from_encoding='utf-8')
Expand Down

0 comments on commit c930669

Please sign in to comment.