Going to a link if you find a link on the page
|
Mar. 15, 2005, 09:44 PM
Post: #1
|
|||
|
|||
Hey guys.
I am making a script that checks to see if a certain link is on the page. If that link is on the page.. then I want to "click" or go to that link in the current window? I know how to find the link, but I am not sure how to go about going to that link after its found. For example. I want to see if the text "Click here to start shopping". If that text is found, then I want to go to the page that is linked to it. so basically if they find a phrase on the website I want to go to the link that the phrase is associated with. any help would be wonderful! thanks. |
|||
Mar. 15, 2005, 10:42 PM
Post: #2
|
|||
|
|||
Are you talking about using proxo for this or a program that you are writing yourself? If you are talking about proxo, you need to read the href before the link you're finding into \1 and then write back a meta refresh tag to the page with that link. So like if the link is setup like this:
<a href="http://www.shopping.com">Click here to start shopping![/url] You would make a filter like this: Match = "<a href="\1">Click here to start shopping![/url]" Replace = "<META HTTP-EQUIV="Refresh" CONTENT="0; URL=\1">" I think you should be able to figure it out from here. �{=(~�::[Shea]::��~)=}� How 'bout you sideburns, you want some of this milk? This fading text is pretty cool, eh? I bet you wish you had some. |
|||
« Next Oldest | Next Newest »
|