Commit 0f9200bc by 张航玮

页面分析,找到按键和输入的id

parent 313d57ef
from bs4 import BeautifulSoup
def get_soap():
soup = BeautifulSoup(open("Login.html"))
input_list = soup.select('input')
button_list = soup.select('button')
print(button_list)
for Input in input_list:
print(Input['type'])
if Input['type'] == 'hidden':
print("could not input")
else:
print(Input['id'])
for Button in button_list:
print(Button)
# if Input['type'] == 'hidden':
# print("could not input")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment