10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I would like to get cars DB from this web site link removed , and I am trying to right script to go and parse the web page and save the data for each cars into a file, type of cars, mark, model, but when I look to the source page I found out that the first car type is preselected and the... (3 Replies)
Discussion started by: molwiko
3 Replies
2. Shell Programming and Scripting
HI Guys,
I have one command which can open page and i want to save and exit from it.
pf@home> mozilla 181.131.193.10/g/report.txt
It will open one page now how can i save it.
Thanks (1 Reply)
Discussion started by: pareshkp
1 Replies
3. Shell Programming and Scripting
I need to get the source code of a webpage. I have tried to use wget and curl, but it doesn't show the necessary javascript part of the source. I don't have to execute it, only to view the source.
How do I do that? (1 Reply)
Discussion started by: locoroco
1 Replies
4. AIX
nmon and web page !
Is there any way to let nmon be configured with external Web Page and updating the same web page to be graphic monitoring.
Pls advice ... (1 Reply)
Discussion started by: Mr.AIX
1 Replies
5. Shell Programming and Scripting
I have a shell script that runs periodic upgrades on machines. I want to print certain echo commands from the shell script onto a webpage. What command in shell should I use for doing this. (1 Reply)
Discussion started by: lassimanji
1 Replies
6. Red Hat
Friends ,
I am using RHEL 5 . My hostname is : server.example.com . I create a web page using this (server.example.comI name . But I want make it "www1.server.example.com" .
In httpd.conf , I set the following lines :
#
#ServerName www.example.com:80
ServerName... (1 Reply)
Discussion started by: shipon_97
1 Replies
7. UNIX for Advanced & Expert Users
I used flot to create a graph and I would like to be able to save/export the graph as an image. In firefox on windows you can just ctl rt-click and you have a save as image feature (which I can automate with js) but...I need this to work on a linux browser. On linux in firefox I can print preview... (11 Replies)
Discussion started by: vincaStar
11 Replies
8. Shell Programming and Scripting
Hi all,
I am having an XML file.
And as per requirement I need to map fields of this file with various field of web page.
So how can I use wput command into it ?
Regards,
gander_ss (3 Replies)
Discussion started by: gander_ss
3 Replies
9. UNIX for Dummies Questions & Answers
hey uhh this is my first post and i was wondering
how do i make a web page for like a small business or something
anything will help
thanks (3 Replies)
Discussion started by: Neil Peart
3 Replies
10. UNIX for Dummies Questions & Answers
I built my website based on Dreamweaver, on Windows platform. My server uses Unix, and the page doesn't look too good. Is there any way to solve this problem without too much of a headache? (1 Reply)
Discussion started by: PCL
1 Replies
Web::Scraper::Filter(3pm) User Contributed Perl Documentation Web::Scraper::Filter(3pm)
NAME
Web::Scraper::Filter - Base class for Web::Scraper filters
SYNOPSIS
package Web::Scraper::Filter::YAML;
use base qw( Web::Scraper::Filter );
use YAML ();
sub filter {
my($self, $value) = @_;
YAML::Load($value);
}
1;
use Web::Scraper;
my $scraper = scraper {
process ".yaml-code", data => [ 'TEXT', 'YAML' ];
};
DESCRIPTION
Web::Scraper::Filter is a base class for text filters in Web::Scraper. You can create your own text filter by subclassing this module.
There are two ways to create and use your custom filter. If you name your filter Web::Scraper::Filter::Something, you just call:
process $exp, $key => [ 'TEXT', 'Something' ];
If you declare your filter under your own namespace, like 'MyApp::Filter::Foo',
process $exp, $key => [ 'TEXT', '+MyApp::Filter::Foo' ];
You can also inline your filter function without creating a filter class:
process $exp, $key => [ 'TEXT', sub { s/foo/bar/ } ];
Note that this function munges $_ and returns the count of replacement. Filter code special cases if the return value of the callback is
number and $_ value is updated.
You can, of course, stack filters like:
process $exp, $key => [ '@href', 'Foo', '+MyApp::Filter::Bar', &baz ];
AUTHOR
Tatsuhiko Miyagawa
perl v5.14.2 2009-03-24 Web::Scraper::Filter(3pm)