Created
October 22, 2012 05:59
Insert Private Feed of Github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mongo | |
> use github | |
> db.createCollection('feed', { capped: true, size: 100000 }) | |
# require jsawk (with spidermonkey) | |
curl https://github.com/$username.private.json?token=$token | jsawk "this.entry" | mongoimport --jsonArray --upsert -d github -c feed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment