xxxxxxxxxx
from selenium import webdriver
import time
chrome_path = r"C:\Users\ish05\Desktop\python\chromedriver.exe"
driver = webdriver.Chrome(chrome_path)
driver.get("https://scholar.google.com/citations?user=cp-8uaAAAAAJ&hl=en")
time.sleep(3)
while True:
try:
show_more = driver.find_element_by_xpath("//button[.//span[text()='Show more'] and not(@disabled)]")
driver.execute_script("arguments[0].click();", show_more)
print("Show more button clicked")
time.sleep(2)
except:
print("No more Show more button")
break
xxxxxxxxxx
from selenium import webdriver
import time
chrome_path = r"C:\Users\ish05\Desktop\python\chromedriver.exe"
driver = webdriver.Chrome(chrome_path)
driver.get("https://scholar.google.com/citations?user=cp-8uaAAAAAJ&hl=en")
time.sleep(3)
while True:
try:
show_more = driver.find_element_by_xpath("//button[.//span[text()='Show more'] and not(@disabled)]")
driver.execute_script("arguments[0].click();", show_more)
print("Show more button clicked")
time.sleep(2)
except:
print("No more Show more button")
break