Created
July 25, 2011 11:23
-
-
Save DamianZaremba/1103944 to your computer and use it in GitHub Desktop.
Github API bizzaeness - well not really v3 sends a http header with hyperlinks to the next page, WTF!
This file contains hidden or 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
prel -e 'use JSON; | |
use LWP::Simple; | |
my $data = get "https://api.github.com/users/damianzaremba/repos"; | |
my $json = decode_json($data); | |
print "Found: "; | |
my $count=0; | |
for(@$json) { print $_->{"name"} . ","; $count++; }; | |
print " (" . $count . ") repos\n";' | |
Found: ClueNet, Bordness, damianzaremba.github.com, api-scripts, Me, | |
Naglite2, NatterNut, youtube-dl, Nagios, ClueNet-User-Portal, | |
ldapsearch, PHPServ, Rochdale-pioneer-explorer-scout-unit, | |
Rochdale-scout-district, .files, elevator, rpm-centos, noVNC, bravo, | |
cluebotng, demens, tweets, snmplib, ClueServices, 7tharochdale.org.uk, | |
cluebot, canhazip.info, ksserver, github-services, code, (30) repos | |
prel -e 'use JSON; | |
use LWP::Simple; | |
my $data = get "https://github.com/api/v2/json/repos/show/damianzaremba"; | |
my $json = decode_json($data); | |
my $repos = $json->{"repositories"}; | |
print "Found: "; | |
my $count=0; | |
for(@$repos) { print $_->{"name"} . ", "; $count++; }; | |
print " (" . $count . ") repos\n";' | |
Found: ClueNet, Bordness, damianzaremba.github.com, api-scripts, Me, | |
Naglite2, NatterNut, youtube-dl, Nagios, ClueNet-User-Portal, | |
ldapsearch, PHPServ, Rochdale-pioneer-explorer-scout-unit, | |
Rochdale-scout-district, .files, elevator, rpm-centos, noVNC, bravo, | |
cluebotng, demens, tweets, snmplib, ClueServices, 7tharochdale.org.uk, | |
cluebot, canhazip.info, ksserver, github-services, code, mailgraph, | |
McMyAdmin-WHMCS, craftbukkit-userlog, dotjs, phabricator, cluemon, | |
configs, cloudnode, endurance80_route, PasteNutter, vps247-console, | |
kvmstuff, Pepsi, Yubi, (44) repos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment