Answer the question
In order to leave comments, you need to log in
How to get generating text on the site?
Hello everyone, I had such a problem, I’m parsing the page https://iancoleman.io/bip39/ I could do it so that the token I need was selected, the generation button was pressed, but I don’t understand further the difficulty how to get the text that is generated in the BIP39 Mnemonic field, I need all the words, as well as in Derived Addresses, I need the first address (just below the page) I surfed the entire Internet, I can’t find a solution
Here is my code:
import bs4
import driver as driver
import time
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from bs4 import BeautifulSoup
import requests
from selenium.webdriver.common.action_chains import ActionChains
# Настройка сайта
driver = webdriver.Chrome()
driver.get('file:///C:/Users/79181/Downloads/bip39-standalone.html')
select = Select(driver.find_element_by_id('network-phrase'))
select.select_by_value('103') # Выбор токена
driver.find_element_by_class_name('generate').click()
source = driver.page_source
soup = BeautifulSoup(source, "html.parser")
time.sleep(3)
ad = soup.find('td', class_='address') #пробую достасть первый адресс
print(ad)
Answer the question
In order to leave comments, you need to log in
Basically the wrong approach. You were too lazy to learn the implementation of bip39 in python, but instead decided to get into parsing.
debug in stages and print everything that raises doubts about compliance with the expected. I thought of cheating, but before that I didn’t?)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question