10 Dec 2009 08:06:07 UTC
- Distribution: Net-Parliament
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (32 / 421 / 0)
- KwaliteeBus factor: 0
- 50.00% Coverage
- License: perl_5
- Activity24 month
- Download (6.89KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionLUKEC Luke Closs
- COPYRIGHT & LICENSE
Net::Parliament - Scrape data from parl.gc.ca
This module will fetch HTML and XML from parl.gc.ca, and then parse it into hashrefs.
use Net::Parliament; my $parl = Net::Parliament->new( parliament => 40, session => 2, ); my $members = $parl->members();
This method returns an arrayref containing a hashref for each member of parliament. Fetching the data is cached via Net::Parliament::UserAgent.
If set to true, extra data from the member's home page will be fetched. This takes much longer.
Only return this number of results. Useful for testing.
This method returns an arrayref containing a hashref for each Government Bill raised in parliament.
This method returns an arrayref containing a hashref for each vote on the specified Bill.
This method returns an arrayref containing a hashref for each vote made by the specified member.
<cpan at 5thplane.com>
Please report any bugs or feature requests to
bug-net-parliament at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Parliament. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
Thanks to parl.gc.ca for the parts of their site in XML format.
Copyright 2009 Luke Closs, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Net::Parliament, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::Parliament
For more information on module installation, please visit the detailed CPAN module installation guide.