I am processing a webpage with Perl using IO::All and the io($url) function.
The pages I am processing ostensibly have well formed URLs. e.g.
Note the #page:15_ portion of the url
When I view the source or print out the source return fromm io() I see names that appear on page 1 of the website, e.g.,
<!-- Start: list_row -->
<h3>Carlos Slim Helu & family</h3>
<td class="worth">$73 B</td>
However, if I open the page up in developer tools in the browser and look through the object model (HTML tab in IE)I see the entries in the list for the people I expect to see on page 15 e.g.,
<TD class=company><A href="/profile/park-hyeon-joo/">
<IMG alt="" src="http://i.forbesimg.com/media/lists/people/park-hy
<TD class=worth>$1 B</TD>
Can I get Perl to open the page and give me the right contents?
Someone suggested looking at Mechanize. I have looked at pQuery and Web::Query. The ->text methods just return the data from page 1, not page 15.
Is there a way to keep the url "alive" until it refeshes with the correct content?
Thanks in advance
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||