mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
Updated but still broken writing to excel
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user