beautysoup4爬虫

按name 查找 表单的value
transferBean_account = soup.find(‘input’,attrs={“name”: “transferBean.account”})[‘value’]
按照id值 查找value
soup.find(‘input’, attrs={“name”: “transferBean.account”})[‘value’]

猜你喜欢

转载自blog.csdn.net/qq_35899407/article/details/88894629
今日推荐