projects
/
Biblio-Z3950.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added save_content for debugging
[Biblio-Z3950.git]
/
Scraper.pm
diff --git
a/Scraper.pm
b/Scraper.pm
index
535f7b5
..
d5e1ba8
100644
(file)
--- a/
Scraper.pm
+++ b/
Scraper.pm
@@
-35,4
+35,15
@@
sub save_marc {
}
+our $dump_nr = 1;
+
+sub save_content {
+ my $self = shift;
+ my $path = "/tmp/$dump_nr.html";
+ open(my $html, '>', $path);
+ print $html $self->{mech}->content;
+ close($html);
+ warn "# save_content $path ", -s $path, " bytes";
+}
+
1;