2020 PRESIDENT ELECTION VOTING COUNT DATA — HOW TO GET THE Ediso
文章來源: emplid2020-11-13 08:51:56

It is definitely not good programming to expose your data source, unsafe, not even password ? I would never program like that.

  1. In Chrome, Go to https://www.nytimes.com/interactive/2020/11/03/us/elections/results-president.html It is ok to see the pay wall
  2. Right click mouse and Inpect.
  3. Cntrl F, find the word ‘president.json’.
  4. There, there, we got source data feed nyt used
  5. Some urls from above source code:

    a. https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/national-map-page/national/president.json this one doesnt have timestamp, looks like it is result dat.

    b. https://static01.nyt.com/elections-assets/2020/data/liveModel/2020-11-03/president/summary.json looks like this is time lapped country level count data.

    5. Click on Michigan, you get the Michigan data from the source code:

  6. This image has an empty alt attribute; its file name is image.png

  7. https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/michigan/president.json looks like this is time lapped state level data. I think this is the file PedeInpector used.