| Catmandu::Importer::CrossRef(3pm) | User Contributed Perl Documentation | Catmandu::Importer::CrossRef(3pm) |
Catmandu::Importer::CrossRef - Package that imports data form CrossRef API
use Catmandu::Importer::CrossRef;
my %attrs = (
doi => '<doi>',
usr => '<your-crossref-username>',
pwd => '<your-crossref-password>',
fmt => '<xsd_xml | unixref | unixsd | info>'
);
my $importer = Catmandu::Importer::CrossRef->new(%attrs);
my $n = $importer->each(sub {
my $hashref = $_[0];
# do something here
});
This Catmandu::Importer imports data from the CrossRef API given a DOI.
Catmandu::Importer::DOI is an older version of this module.
CrossRef also provides DOI data in RDF, which can be imported with Catmandu::RDF:
use Catmandu::Importer::RDF;
my $doi = "10.2474/trol.7.147";
my $url = "http://dx.doi.org/$doi";
my $rdf = Catmandu::Importer::RDF->new( url => $url )->first;
| 2023-02-02 | perl v5.36.0 |