Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Anonymous Monk
on Nov 21, 2008 at 08:45 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://725071]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found