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)
評論
目前還沒有任何評論
登錄後才可評論.