Updated but still broken writing to excel

This commit is contained in:
Joe Steele
2024-06-30 21:48:06 -04:00
parent d774a207a0
commit c6c14afc6b
+2
View File
@@ -538,6 +538,8 @@ def get_google_data(driver, local_outputs):
# Now find button and click on button # Now find button and click on button
video_elements = driver.find_elements(By.XPATH ,'//video') #.get_attribute('src') video_elements = driver.find_elements(By.XPATH ,'//video') #.get_attribute('src')
urlmedia = str((video_elements[0]).get_attribute("src")) urlmedia = str((video_elements[0]).get_attribute("src"))
current_url = video_elements[0]._parent.current_url
database_update_row(name,"review_id",current_url,"forceall",local_outputs)
# return back away from iframe # return back away from iframe
driver.switch_to.default_content() driver.switch_to.default_content()
else: else: