Configure the Xueqiu token
masterBefore calling any APIs, you must manually obtain a token from the Xueqiu (雪球) website/app. Use ball.set_token() to provide the token string, which must include both xq_a_token and u. Without this step, API access will be denied.
import pysnowball as ball
ball.set_token("xq_a_token=662745a236*****;u=909119****")