Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perigrin/http-thin-useragent
A Thin UserAgent Wrapper around HTTP::Thin
https://github.com/perigrin/http-thin-useragent
Last synced: 22 days ago
JSON representation
A Thin UserAgent Wrapper around HTTP::Thin
- Host: GitHub
- URL: https://github.com/perigrin/http-thin-useragent
- Owner: perigrin
- Created: 2013-02-18T21:00:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-20T16:09:06.000Z (almost 9 years ago)
- Last Synced: 2024-05-01T22:51:33.978Z (8 months ago)
- Language: Perl
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTTP::Thin::UserAgent
===================HTTP::Thin::UserAgent -- A Thin Wrapper around HTTP::Thin
use HTTP::Thin::UserAgent;
my $data = http( POST 'http://api.metacpan.org/v0/release/_search')->as_json(
{ query => { match_all => {} },
size => 5000,
fields => ['distribution'],
filter => {
and => [
{ term => {
'release.dependency.module' => 'MooseX::NonMoose'
}
},
{ term => { 'release.maturity' => 'released' } },
{ term => { 'release.status' => 'latest' } }
]
}
}
)->decoded_content;my $results = http(GET 'http://www.imdb.com/find?q=Kevin+Bacon')->scraper(
scraper {
process '.findResult', 'results[]' => scraper {
process '.result_text', text => 'TEXT';
process '.result_text > a', link => '@href';
}
}
)->decoded_content;