Last active
December 17, 2015 08:59
-
-
Save rjp/5583735 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
use JSON; | |
use Data::Dumper; | |
sub get_skillz { | |
my $query = shift; | |
my $json = get( "http://www.linkedin.com/ta/skill?query=$query" ); | |
my $data = decode_json( $json ); | |
return $data; | |
} | |
my @skills = (); | |
my $initialism = 'aaa'; | |
select(STDERR); | |
$|++; | |
while ( $initialism le 'zzz' ) { | |
print STDERR "Fetching $initialism\r"; | |
my $data = get_skillz( $initialism ); | |
push @skills, map { $_->{'displayName'} } @{ $data->{'resultList'} }; | |
$initialism++; | |
} | |
print STDERR "All done, REJOICE\n"; | |
print encode_json(\@skills); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment