emplid的博客

装修流水账。开始跟老狐狸说的是2万4做3个浴室加厨房地板, 之中要拆一块壁橱的板,加了5百块, 老狐狸说地毯是肯定要换,给了个价钱一层6000-7000快,现在最近的消息是, 老狐狸说地下室的暴露的电线一定要拆掉,不拆不会检查过关,所以要1000块。
正文

2020 PRESIDENT ELECTION VOTING COUNT DATA — HOW TO GET THE Ediso

(2020-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.
[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.