Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try this</p> <pre><code>use LWP::Simple; use LWP::UserAgent; use HTML::TableExtract; $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; $ua = LWP::UserAgent-&gt;new; $ua-&gt;agent("Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11"); $req = HTTP::Request-&gt;new(GET =&gt; "https://familysearch.org/pal:/MM9.1.1/K3BN-LLJ"); $res = $ua-&gt;request($req); $content = $res-&gt;content; #$content = get("https://familysearch.org/pal:/MM9.1.1/K3BN-LLJ") or die "Couldn't get it! $!"; $te = HTML::TableExtract-&gt;new( attribs =&gt; { 'class' =&gt; 'result-data' } ); # $te = HTML::TableExtract-&gt;new( ); $te-&gt;parse($content); $table = $te-&gt;first_table_found; # print $content; exit; # $te-&gt;tables_dump(1); #print Dumper($te); #print Dumper($table); print $table-&gt;cell(4,0) . ' = ' . $table-&gt;cell(4,1), "\n"; exit; </code></pre> <p>Which prints out</p> <blockquote> <p>event place: = Assembly District 2, Queens, New York City, Queens, New York, United States</p> </blockquote> <p>I also noticed this header:</p> <blockquote> <p>X-Copyright:COPYRIGHT WARNING Data accessible through the FamilySearch API is protected by copyright. Any programmatic access, reformatting, or rerouting of this data, without permission, is prohibited. FamilySearch considers such unauthorized use a violation of its reproduction, derivation, and distribution rights. Contact devnet (at) familysearch.org for further information.</p> </blockquote> <p>See also <a href="http://metacpan.org/pod/HTML%3a%3aElement#SYNOPSIS" rel="nofollow">http://metacpan.org/pod/HTML::Element#SYNOPSIS</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload