DemocracyClub / yournextrepresentative

👥 A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk
GNU Affero General Public License v3.0
21 stars 27 forks source link

A uselessly small number of results are returned with the `candidates_elected` endpoint #2402

Open Muzer opened 1 week ago

Muzer commented 1 week ago

Issue and Steps to Reproduce

I am trying to make a fairly simple script which will run throughout election day which will involve collecting the currently declared candidates. I have no need to wait for precise vote counts, therefore it seems I should be using the candidates_elected endpoint as I want up-to-the-minute data as the results are coming in.

Screenshots

Expected

A page_size argument is provided, or the default page size is not tiny

Actual

The page size is tiny

Additional Details

Muzer commented 1 week ago

Incidentally logging in does fix the 429 errors, but I really don't want to be completely hammering your site 65 times every minute or so when I could just do it once a minute...