PlajePariuri = driver.find_elements_by_xpath("//ul[@class='KambiBC-list-view__column']")
for items in PlajePariuri:
NumePlaje = items.find_element_by_xpath("//li/header/h2")
print (NumePlaje.text)
try:
element_present = EC.presence_of_element_located((By.CLASS_NAME, 'KambiBC-event-result__score-list'))
WebDriverWait(driver, 4).until(element_present)
except TimeoutException:
print ('Timed out waiting for page to load')
event = driver.find_elements_by_class_name('KambiBC-event-item KambiBC-event-item--type-match')
for items in event:
link = items.find_element_by_class_name('KambiBC-event-item__link')
scoruri = items.find_element_by_class_name('KambiBC-event-item__score-container')
scor1 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[1]")
scor2 = scoruri.find_element_by_xpath(".//li[@class='KambiBC-event-result__match']/span[2]")
print (scor1.text)
print (scor2.text)`-
`
if scor1.text == '0' and scor2.text == '0':
link.click()
time.sleep(3)
如何用下面的代码替换上面的代码 像发布Instagram feed的代码
<span class="glyphsSpriteHeart__outline__24__grey_9 u-__7" aria-label="Like"></span>
我想在主页上获取Instagram帖子 如果您有想法,请指导我 问题之一是所有帖子都有一个静态代码 只有他们的同龄人不喜欢或不喜欢
我想定义一个循环,让哪些类查找名称并命令其单击