Reduce the timeout for downloading web pages

This commit is contained in:
oobabooga 2025-05-28 18:15:21 -07:00
parent 3eb0b77427
commit 7080a02252

View file

@ -13,7 +13,7 @@ def get_current_timestamp():
return datetime.now().strftime('%b %d, %Y %H:%M')
def download_web_page(url, timeout=10):
def download_web_page(url, timeout=5):
"""Download and extract text from a web page"""
try:
headers = {