Home About Chat Users Issues Party Candidates Polling Firms Media News Polls Calendar Key Races United States President Senate House Governors International

New User Account
"A comprehensive, collaborative elections resource." 
Email: Password:

  Site Programming Change Suggestion

Completed Suggestion From RP
Back to List [Back to Programming Changes Listing]
Complete Date Nov 15, 2020 04:11pm
Short Description
New AP Data Processing
Long Description
The new AP pages have their data generated by javascript, so pulling it from a URL without the javascript running no longer works.

Example URL: [Link]

Changed it to a method to paste the HTML from the page after your browser processes the javascript. You can get this in Chrome by clicking the 3 verical dot icon, going to More Tools -> Developer Tools -> ELements. Right click on the <html> tag and select Copy -> Copy outerHTML

It will try to match the county names exactly. If they do not match it will leave that county blank.

It will try and match the Candidate wither by an exact match to the First and Last name combined with a space, or with an exact match to the On Ballot As field on the Race Member Edit page. If either is an exact match, it will see if the LastName field exists in the AP string.

Processing the AP code does not save the results. You must save after it processes.
Priority
10
Rejected
This suggestion has not been rejected.
DISCUSSION
[View All
5
Previous Messages]