diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-01-23 19:36:24 +0100 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-01-23 19:36:24 +0100 |
| commit | a7cc690ced15e1a0191d27034006bfb17a0deeb5 (patch) | |
| tree | 6cef1a2e07727e8cd5249764f461222073e8211a /crawl.pl | |
| download | github-explorer-a7cc690ced15e1a0191d27034006bfb17a0deeb5.tar.gz | |
basic github crawler using api
Diffstat (limited to 'crawl.pl')
| -rw-r--r-- | crawl.pl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/crawl.pl b/crawl.pl new file mode 100644 index 0000000..fa7ae4e --- /dev/null +++ b/crawl.pl @@ -0,0 +1,25 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use lib ('lib'); +use githubexplorer; +use Getopt::Long; + +GetOptions( + 'deploy' => \my $deploy, + 'profiles' => \my $profiles, + 'repo' => \my $repo +); + +my $gh = githubexplorer->new( + seed => [qw/franckcuny/], + api_token => $ENV{'GITHUB_APIKEY'}, + api_login => $ENV{'GITHUB_LOGIN'}, + with_repo => $repo, + connect_info => + [ 'dbi:SQLite:dbname=test.sqlite', '', '', { AutoCommit => 1 } ], +); + +$gh->deploy if $deploy; +$gh->harvest_profiles; + |
