Fetch the current human population of Earth

curl -s http://www.census.gov/popclock/data/population/world | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["world"]["population"]'
They are using json now
Sample Output
7100814924

12
By: mfr
2013-07-27 08:00:10

3 Alternatives + Submit Alt

What Others Think

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. fusible link
Audrey10 · 3 weeks ago
Positive site, where did u produce the data on this posting?I have read a few of the articles on your website now, and I enjoy your style. Thanks a million and please continue the effective work. bandar taruhan bola terpercaya
KayGasaway · 1 week and 2 days ago
Took me time for you to read all of the comments, but I must say i enjoyed the article. It proved to be Very useful to me and I am certain that to all or any the commenters here! It's always nice when you're able to not merely be informed, but in addition entertained! NBA Wall Art
KayGasaway · 6 days ago
I can see that you will be an expert at your field! I'm launching an internet site soon, and your information is likely to be very helpful for me.. Thanks for the help and wishing you all of the success in your business. Sexpuppen
KayGasaway · 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: