Deployment using Docker

This commit is contained in:
gabrielkheisa
2024-04-14 14:39:20 +07:00
parent 1410f1c3d8
commit 43e540d7b0
3 changed files with 44 additions and 2 deletions

2
run.py
View File

@@ -35,7 +35,7 @@ options.add_argument('--disable-gpu')
options.add_argument('--window-size=1920,1080')
options.add_argument('--no-sandbox')
options.add_argument(f'user-agent={user_agent}')
browser = webdriver.Chrome(executable_path="/usr/bin/chromedriver", options=options)
browser = webdriver.Chrome(options=options)
# Function to handle web scraping using Selenium
def get_video_source(query_string):