Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
access to span Elements of an HTML site

New User

Aug 5, 2013, 9:01 AM

Views: 11402
access to span Elements of an HTML site

hallo everbody,

i just trying to access to an span element of an html side but i don't know how i can do this. Is there any method how i can access to an html xpath of an span element?

I have tried this code below, but actually i don't want to print out a html content. I want to access to an html span element or any tag of an html side.

Is there any opportunity to do this, or an perl script example how i can get access to an element within an html dokument?

I really don't know what i shold try next...

thanks for your answers.

use WWW::Mechanize; 
my $browser = WWW::Mechanize->new();
die $browser->responce->status_line unless $browser->success;

print $browser->content();