我登录了我的Steam帐户并尝试获取我的Steam钱包的金额,但该值始终无济于事。
import webbrowser, requests, time, datetime
from bs4 import BeautifulSoup
import matplotlib.pyplot as plt
def get_bal():
bal = requests.get('https://steamcommunity.com/market/search?appid=730&q=dragon')
soup2 = BeautifulSoup(bal.content, "html.parser")
money = soup2.find(id="marketWalletBalanceAmount")
#money = 4.8
print(money)
return money
get_bal()