06:寻宝_第1集:寻宝游戏!

06:寻宝

Let’s kick things off with something a bit unusual: a virtual scavenger hunt.

让我们从一些不寻常的事情开始:虚拟寻宝游戏。

At some point, nearly every web geek gets a chance to hack on some open data, usually from a government source. The buzzword here is “mashup,” but knowing how to find and consume openly available data will remain a valuable skill long after its faddishness ends.

在某个时候,几乎每个网络极客都有机会入侵通常来自政府来源的一些开放数据。 这里的流行语是“混搭”,但是在时尚不再流行之后,知道如何查找和使用公开可用的数据仍将是一项宝贵的技能。

Unfortunately, governments, and especially the US government, are often incredibly awful at providing this data. Sure, it’s available — but you’ve got to find it first.

不幸的是,各国政府,尤其是美国政府,在提供这些数据方面通常非常糟糕。 当然,它可用-但您必须首先找到它。

So this question is all about finding that data. Since I’m most familiar with the USA, this question is USA-specific (but I’d love to see answers to any questions that apply to other nations).

因此,这个问题全部与查找该数据有关。 因为我对美国最熟悉,所以这个问题是针对美国的(但是我很乐意看到适用于其他国家的所有问题的答案)。

In each case, the answer should be a URL where you can either download the data in question, or at least find a direct link to the data. There may be multiple sources for each, including ones that could be screen-scraped for the data. I’m not looking for those sources, however — just the ones with easily downloadable data in a format that can be easily parsed by a computer (i.e. CSV, XML, plain text). “Friendly” formats, in other words.

在每种情况下,答案都应该是一个URL,您可以在其中下载有问题的数据,或者至少找到指向该数据的直接链接。 每个来源可能有多个来源,包括可以筛选数据的来源。 但是,我不是在寻找那些来源,而是那些具有易于下载的数据且其格式可以由计算机轻松解析的数据(例如CSV,XML,纯文本)。 换句话说,“友好”格式。

So, where can I download data to:

因此,我可以在哪里将数据下载到:

  1. Analyze the nutritional content of foods?

    分析食物的营养成分?
  2. Find the population (and other basic demographics) of my city?

    找到我城市的人口(和其他基本人口统计信息)?
  3. Analyze the latest SEC filings by public companies?

    分析上市公司最新的SEC文件?
  4. Look at historical gas prices?

    看看历史汽油价格?
  5. Look for trends in juvenile arrest rates?

    寻找少年逮捕率的趋势?

Post your answers into the comments. For extra brownie points, tell us how you located each piece of data — did The Google serve you well, or were you forced to turn elsewhere?

将您的答案发布到评论中。 有关布朗尼的更多信息,请告诉我们您如何定位每条数据-Google是否为您提供了很好的服务,还是您被迫转向其他地方?

If you really want to stretch your brain, try to write a tool to import each chunk of data into your favorite relational database. There will be a related question in a couple of weeks involving modeling one of these pieces of data, so you overachievers can start thinking about it now…

如果您真的想伸张大脑,请尝试编写一个工具,将每个数据块导入您喜欢的关系数据库中。 在接下来的几周中,将有一个涉及对这些数据之一进行建模的相关问题,因此,您过时的人才可以立即开始考虑…

Good luck, and check back this weekend for the answers.

祝您好运,请在本周末回来查看答案。

翻译自: https://www.sitepoint.com/scavenger-hunt/

06:寻宝

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值