From c83b842968267d7b2d4f65597e1ffa72f2497211 Mon Sep 17 00:00:00 2001 From: Gabriel Kheisa <63294471+gabrielkheisa@users.noreply.github.com> Date: Tue, 14 May 2024 03:05:10 +0700 Subject: [PATCH] Update xpath --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 2e5b8de..bf1df35 100644 --- a/run.py +++ b/run.py @@ -54,7 +54,7 @@ def get_video_source(query_string): try: # Reels video_element = browser.find_element_by_xpath( - "/html/body/div[2]/div/div/div[2]/div/div/div[1]/section/main/div/div[1]/article/div/div[1]/div/div/div/div/div/div/div/video" + "/html/body/div[2]/div/div/div[2]/div/div/div[1]/section/main/div[1]/div[1]/article/div/div[1]/div/div/div/div/div/div/div/video" ) except: # Post (image)