This commit is contained in:
retoor 2025-05-31 13:52:04 +02:00
parent 7dd3133475
commit 4854d40508

View File

@ -3,7 +3,7 @@ import re
from functools import lru_cache
from types import SimpleNamespace
from urllib.parse import urlparse, parse_qs
from app.cache import time_cache
import emoji
import requests
from bs4 import BeautifulSoup
@ -233,7 +233,7 @@ def linkify_https(text):
return set_link_target_blank(str(soup))
@lru_cache(maxsize=128)
@time_cache(timeout=60*60)
def get_url_content(url):
try:
response = requests.get(url, timeout=5)