File: proxy.pl

package info (click to toggle)
libnet-github-perl 1.05-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 376 kB
  • sloc: perl: 2,073; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl

use strict;
use warnings;
use FindBin qw/$Bin/;
use lib "$Bin/../lib";
use Net::GitHub::V3;
use Data::Dumper;

my $gh = Net::GitHub::V3->new();
$gh->ua->proxy('https', 'socks://127.0.0.1:9050');
my $search = $gh->search;

my %data = $search->repositories({
    q => 'perl',
    per_page => 100,
});
map { print $_->{url} . "\n" } @{$data{items}};

1;