Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: 2 questions for Corion regarding href with Mechanize::Firefox

by Corion (Pope)
on Jul 16, 2013 at 07:43 UTC ( #1044525=note: print w/ replies, xml ) Need Help??


in reply to Re^2: 2 questions for Corion regarding href with Mechanize::Firefox
in thread 2 questions for Corion regarding href with Mechanize::Firefox

Thanks for posting actual code and data.

I've never used ->find_all_links in conjunction with ->follow_link. As ->find_all_links needs to return absolute links, and as there is no easy way for ->follow_link to determine URL equivalence for arbitrary href attributes, the problem is basically unsolvable that way.

As a workaround, I would look at ->find_link_dom , which returns DOM objects instead of converting things to strings.


Comment on Re^3: 2 questions for Corion regarding href with Mechanize::Firefox
Select or Download Code
Re^4: 2 questions for Corion regarding href with Mechanize::Firefox
by help_3452 (Initiate) on Jul 16, 2013 at 08:11 UTC



    Thank you so much for responding. Your code is dense and I wasn't sure I understood it correctly.

    Really appreciate you taking the time to respond.

    Should I come up with a good solution over the next while I will share it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-04-17 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (437 votes), past polls