import json def get_signed_in_user(session): r = session.get("https://pantry.panerabread.com/session/user") return json.loads(r.text)