Based on the documentation for votesmart the Candidates.getByElection() method provides for a stageId parameter value that filters results based on the election stage:
Candidates.getByElection()
This method grabs a list of candidates according to the election they are running in.
Input: electionId*, stageId
However, the current python candidates class method getByElection() does not provide for a stageId parameter to be passed in as an argument:
https://github.com/votesmart/python-votesmart/blob/master/votesmart.py#L301
Instead it only provides for the electionId. So, presently there is no way to filter candidate values by election stage.
Based on the documentation for votesmart the
Candidates.getByElection()method provides for astageIdparameter value that filters results based on the election stage:However, the current python
candidatesclass methodgetByElection()does not provide for astageIdparameter to be passed in as an argument:https://github.com/votesmart/python-votesmart/blob/master/votesmart.py#L301
Instead it only provides for the
electionId. So, presently there is no way to filter candidate values by election stage.