TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

AP reports US election results via Ethereum blockchain

107 pointsby austonover 4 years ago

6 comments

pg_botover 4 years ago
This API is confusing for multiple reasons.<p>The obvious question is why involve a blockchain at all. I don&#x27;t think there is a coherent answer to that question.<p>The second is why are we asking people to poll for information instead of broadcasting it to them via something like webhooks? It&#x27;s much easier to notify people of updates rather than have them constantly ask for updates.
评论 #24998139 未加载
ohaziover 4 years ago
...why?
评论 #24987078 未加载
评论 #24987111 未加载
评论 #24987064 未加载
评论 #24987949 未加载
评论 #24987021 未加载
评论 #24987563 未加载
1vuio0pswjnm7over 4 years ago
Here is a simple script to grab election results from AP via The Guardian. No API key required. No over-enegineered &quot;ELEX&quot; Python scripts. Just request the JSON and do whatever you want with the numbers.<p>Usage: 1.sh [2-letter state abbrev uppercase]<p>Example: 1.sh PA<p><pre><code> cat &gt; 1.sh #!&#x2F;bin&#x2F;sh x=$(curl https:&#x2F;&#x2F;interactive.guim.co.uk&#x2F;2020&#x2F;11&#x2F;us-general-election-data&#x2F;prod&#x2F;last_updated.json|sed -n &#x27;&#x2F;&quot;time&quot;:&#x2F;{s&#x2F;{&quot;time&quot;:&quot;&#x2F;&#x2F;;s&#x2F;&quot;}&#x2F;&#x2F;;p;}&#x27;) curl https:&#x2F;&#x2F;interactive.guim.co.uk&#x2F;2020&#x2F;11&#x2F;us-general-election-data&#x2F;prod&#x2F;data-out&#x2F;$x&#x2F;president_details.json|sed &#x27;s&#x2F;.*\&quot;&#x27;&quot;$1&quot;&#x27;\&quot;:&#x2F;&#x2F;;s&#x2F;\&quot;[A-Z][A-Z]\&quot;:.*&#x2F;&#x2F;;s&#x2F;,&#x2F;\ &#x2F;g;s&#x2F;&quot;candidates&quot;:\[&#x2F;&#x2F;;&#x27;</code></pre> echo $x<p><pre><code> ^D</code></pre>
tmalyover 4 years ago
Shouldn&#x27;t the election boards be reporting via Ethereum and not news orgs?
评论 #24990082 未加载
评论 #24992864 未加载
sali0over 4 years ago
Surprised they didn&#x27;t use Chainlink. In fact, I can&#x27;t even find any references to this &quot;Everipedia OraQle&quot;. What is it?
评论 #24986959 未加载
评论 #24986884 未加载
the_70xover 4 years ago
This implementations of blockchain are really interesting stuff for people that think blockchain is only for money related stuff.