summaryrefslogtreecommitdiff
path: root/coderepos.pl
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2014-01-01 16:30:44 -0800
committerFranck Cuny <franck.cuny@gmail.com>2014-01-01 16:30:44 -0800
commitab810bc59bd3d585627b388e33dc09a3ce69da12 (patch)
tree9a3d7290dde4d2bae8850e839f8f5c5766c9a010 /coderepos.pl
parentwip (diff)
downloadgithub-explorer-ab810bc59bd3d585627b388e33dc09a3ce69da12.tar.gz
big import to not lose stuff
Diffstat (limited to 'coderepos.pl')
-rw-r--r--coderepos.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/coderepos.pl b/coderepos.pl
new file mode 100644
index 0000000..6f4b7c0
--- /dev/null
+++ b/coderepos.pl
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use 5.010;
+use Web::Scraper;
+use URI;
+use YAML::Syck;
+
+my $scraper = scraper{process "a", "commiters[]" => "TEXT"};
+
+my $res = $scraper->scrape(URI->new('http://coderepos.org/share/'));
+
+my @coderepos;
+foreach my $link (@{$res->{commiters}}) {
+ next if $link !~ /^Committer:(\w+)/;
+ push @coderepos, $1;
+}
+
+DumpFile('tocheck_coderepos.yaml', \@coderepos);