Prev: FAQ 4.23 How do I find matching/nesting anything?
Next: How to convert link encoded by javascript command to the actualurl?
From: Peng Yu on 10 Jul 2010 13:29 Suppose I see a webpage on a website that has the following link encoded by javascript, I want to user perl to parse such webpage and convert it to the actual url. Could you please let me know what package I should use? I thought that HTML package may not handle this. But please let me know if I'm wrong. <a herf="javascript:some_command_return_a_url();">Link</a>
From: Peng Yu on 11 Jul 2010 17:22
On Jul 10, 1:15 pm, "Peter J. Holzer" <hjp-usen...(a)hjp.at> wrote: > On 2010-07-10 17:29,PengYu<pengyu...(a)gmail.com> wrote: > > > Suppose I see a webpage on a website that has the following link > > encoded byjavascript, I want to user perl to parse such webpage and > > convert it to the actual url. Could you please let me know what > > package I should use? I thought that HTML package may not handle this. > > But please let me know if I'm wrong. > > ><a herf="javascript:some_command_return_a_url();">Link</a> > > I would start athttp://search.cpan.org/search?query=javascript&mode=all There are many results returned. Which one is the best one to help me solve my particular problem? |