Dear Monks,
I am looking for a way to extract links from html documents. Have been working with HTML::Parser and HTML::LinkExtor, which do fine for what they do, however, I am finding that the list of links they parse is incomplete. For example, the links found in:
<style>
background: url('images/bg_content.jpg')
</style>
<style type="text/css" media="screen">@import "../style.css";</style>
<script type="text/javascript">
...
s1.addParam("flashvars","file=testmovie.flv&image=../media/flash/previ
+ews/testmovie_prvw.jpg");
...
</script>
are ignored.
If someone can either:
point out what I am missing in order to use HTML::LinkExtor or HTML::Parser the way I want.
suggest another module that they know to be more robust (so I don't have to keep trying them all)
point me to a resource that would provide a list of all possible situations in an HTML document in which a link can occur (whether strictly standard or quirksmode), in which I can write my own.
I will post code if desired, but didn't feel it was necessary to for the question as such.