The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Web::Scraper::Citations - Scrapes Google Scholar profiles for citations and stuff

VERSION

This document describes Web::Scraper::Citations version 0.0.1

SYNOPSIS

  use Web::Scraper::Citations;

  my $author_profile = new Web::Scraper::Citations( $url_or_author_id );

  say "This champ has got an h of ", $author_profile->h(), " and ", $author_profile->citations();

DESCRIPTION

This scraper downloads information from Google Scholar profiles at http://scholar.google.com/citations. Scraping is limited by google to 2500 a day, so be careful with it and don't binge-scrape.

INTERFACE

new ( $url_or_author_id )

Creates a new object from the Google Citations URL or author ID (which is part of the URL anyway)

h, h_last5, citations, citations_last5, i10, i10_last5, name, affiliation

Returns the h index, citations, and number of papers with more than 10 citations, absolute or in the last 5 years.

profile_stats

Returns a hashref with all stats above, names as keys.

scrape_URL( $url )

Scrapes either a real URL or a file: which is used mainly for caching purposes or for offline.

STAT_NAMES

Constant with the names of the stats we are interested in.

CONFIGURATION AND ENVIRONMENT

Web::Scraper::Citations requires no configuration files or environment variables.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests to bug-web-scraper-citations@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR

JJ <JMERELO@cpan.org>

LICENCE AND COPYRIGHT

Copyright (c) 2015, JJ <JMERELO@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the GPL v3.

DISCLAIMER OF WARRANTY

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.