- Перейдите в Yieldwatch
- Введите 0xF54274757Bf717B1ab52bA0d3a7CbF635f856a0d в текстовое поле «Адрес» и щелкните бинокль.
- Соберите текст в разделе «Состояние капитала»
[img]https://i.sstatic.net /X0UEZ.png[/img]
Код: Выделить всё
from selenium.webdriver import Safari # pip install selenium
from selenium.webdriver.support.ui import WebDriverWait
url = 'https://www.yieldwatch.net/'
bsc_public_key = '0xF54274757Bf717B1ab52bA0d3a7CbF635f856a0d'
# with closing(Safari()) as browser:
browser = Safari()
browser.get(url)
textbox = browser.find_element_by_id('addressInputField')
textbox.clear()
textbox.send_keys(bsc_public_key)
button = browser.find_element_by_class_name('binoculars icon')
button.click()
# # wait for the page to load
WebDriverWait(browser, timeout=20).until(
lambda x: x.find_element_by_id('ui centered image'))
# store it to string variable
page_source = browser.page_source
print(page_source)
Подробнее здесь: https://stackoverflow.com/questions/673 ... yieldwatch