Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: Working with source of returned web page

by Popcorn Dave (Abbot)
on Jun 10, 2008 at 22:48 UTC ( #691353=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Working with source of returned web page
in thread Working with source of returned web page

It's been a while since I used that module but if I recall correctly, it parses everything in to a token and the tokens not defined as an HTML tag should be defined as a text token.

Take a look at HTML::TokeParser help - parsing headlines and you'll see a quick program I wrote to dump an HTML page to tokenized output. Run that on your page and I think you'll see you don't need to do the regex per se, but rather need to check text tokens to find what you're after.

Good luck!

Update: Changed link from scratchpad to node as per suggestion by ww

Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

I would love to change the world, but they won't give me the source code

Comment on Re^3: Working with source of returned web page

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://691353]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-11-25 00:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (666 votes), past polls