Skip to content

Commit

Permalink
remove xvfb option
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Sep 25, 2024
1 parent 1740e43 commit 5dd2cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions novel/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion novel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5dd2cfd

Please sign in to comment.