Update xpath

This commit is contained in:
Gabriel Kheisa 2024-05-14 03:05:10 +07:00 committed by GitHub
parent c293cf5e67
commit c83b842968
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
run.py
View File

@ -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)