--
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
--
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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.
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: https://elections.ap.org/dailykos/results/2020-11-03/state/PA/race/P/raceid/0 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.
[Completed]
Priority
10
Rejected
This suggestion has not been rejected.
Add Your 2¢
Agree
Disagree
Laugh
Groan
Troll
Befuddled
Work Complete
Prediction
[close]
DISCUSSION
[View All
5
Previous Messages]