update function to get subject info by spider and api