diff --git a/novel/Dockerfile b/novel/Dockerfile index 0829733..6e86af1 100644 --- a/novel/Dockerfile +++ b/novel/Dockerfile @@ -1,6 +1,7 @@ FROM python:3.12-slim ENV TZ=Europe/London +ENV DISPLAY=:99 RUN apt-get update RUN apt-get install -y gnupg curl ca-certificates --no-install-recommends diff --git a/novel/main.py b/novel/main.py index 931811b..ce50fc8 100644 --- a/novel/main.py +++ b/novel/main.py @@ -100,7 +100,7 @@ def load_cache(): def get_url_html(url, proxy=None): try: - with SB(uc=True, proxy=proxy, xvfb=True) as sb: + with SB(uc=True, proxy=proxy) as sb: sb.uc_open_with_reconnect(url, 5) sb.uc_gui_click_captcha() return sb.get_page_source()