Jump to content
Sign in to follow this  
cypher175

Find all links in a page with _StringBetween..?

Recommended Posts

cypher175

if i wanted to find all of the links in a webpage that contain the variable $Find

and then do a function for each link that it finds, how would i do that, without writing any temp files to disk..??

$IE = _IECreate("http://www.website.com/")

$Read_HTML = _IEDocReadHTML($IE)

$Find = _StringBetween($Read_HTML, "http://website.com/", "/")

Share this post


Link to post
Share on other sites
cypher175

anybody know how to do it..??

Share this post


Link to post
Share on other sites
Authenticity

There is _IELinkGetCollection() for that. On each link you find there is inner or outer - text or html you can parse and react according to.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.