Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Extract and modify IMG SRC tags in an HTML document.

by Anonymous Monk
on Nov 21, 2008 at 08:45 UTC ( #725071=note: print w/ replies, xml ) Need Help??


in reply to RE: Extract and modify IMG SRC tags in an HTML document.
in thread Extract and modify IMG SRC tags in an HTML document.

This is a very old thread but its really important for me... I need to modify the hrefs and the src tags for proxy. but the problem is some hrefs are like href="/page.html" href="../page.html" href="http://url" href=url ... src="/abc.jpg".... What I am doing is downloading the page source using Lynx. ThenI have to modify all the links like www.yahoo.com example www.abc.com/cgi-bin/proxy.pl?http://www.yahoo.com then clicking on any link on that page will download the other page source and proceeds the same way.


Comment on Re^2: Extract and modify IMG SRC tags in an HTML document.
Re^3: Extract and modify IMG SRC tags in an HTML document.
by nel (Initiate) on Feb 24, 2013 at 20:33 UTC
    I tried this code snippet however its not working in my case. Any help i could get inorder to change src and add an onclick event in an image tag?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-07-30 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls