Module ImportFrom alias alias alias alias alias alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Dict Str Str keyword Str keyword Str keyword NameLoad keyword Str keyword Str keyword Str FunctionDef arguments args defaults body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Return Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str TupleLoad SubscriptLoad NameLoad Index Str Str Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A flask Flask redirect url_for session request jsonify flask_oauthlib.client OAuth N/A app N/A Flask __name__ N/A N/A app debug True N/A N/A app secret_key development N/A oauth N/A OAuth app N/A weibo N/A N/A oauth remote_app weibo consumer_key 909122383 consumer_secret 2cdc60e5e9e14398c1cbdf309f2ebd3a request_token_params N/A scope email,statuses_to_me_read base_url https://api.weibo.com/2/ authorize_url https://api.weibo.com/oauth2/authorize request_token_url None access_token_method POST access_token_url https://api.weibo.com/oauth2/access_token content_type application/json index N/A N/A N/A N/A N/A N/A oauth_token session N/A N/A access_token N/A N/A session N/A oauth_token N/A 0 N/A resp N/A N/A weibo get statuses/home_timeline.json N/A N/A jsonify N/A resp data N/A N/A redirect N/A url_for login N/A N/A N/A app route / login N/A N/A N/A N/A N/A N/A N/A weibo authorize callback N/A url_for authorized next N/A N/A N/A N/A request args get next N/A request referrer None _external True N/A N/A N/A app route /login logout N/A N/A N/A N/A N/A N/A N/A session pop oauth_token None N/A N/A redirect N/A url_for index N/A N/A N/A app route /logout authorized N/A N/A N/A N/A N/A resp N/A N/A weibo authorized_response N/A N/A resp None N/A N/A N/A Access denied: reason=%s error=%s N/A N/A N/A request args N/A error_reason N/A N/A request args N/A error_description N/A N/A session N/A oauth_token N/A N/A resp N/A access_token N/A N/A redirect N/A url_for index N/A N/A N/A app route /login/authorized get_weibo_oauth_token N/A N/A N/A N/A N/A N/A N/A session get oauth_token N/A N/A weibo tokengetter change_weibo_header N/A N/A uri headers body N/A N/A N/A Since weibo is a rubbish server, it does not follow the standard,
    we need to change the authorization header for it. N/A auth N/A N/A headers get Authorization N/A auth N/A N/A auth N/A N/A auth replace Bearer OAuth2 N/A N/A headers N/A Authorization auth N/A N/A uri headers body N/A N/A N/A weibo pre_request change_weibo_header N/A N/A __name__ __main__ N/A N/A N/A N/A app run