Link Extraction from a website

  • Hi every one

    I want to extract the link that is in this page

    https://old.goo-2o.com/5dfd16ae0d783

    found in the text "Click here"

    but the problem is: the result in the Debug is always "NULL"

    here is my code


    Code
    Set elems= html.getElementsByClassName("unauth_capsule clearfix")
        For Each elm In elems
                    result = elm.getAttribute("href")
     
                    Debug.Print result
     
        Next

    Thanks in advance

  • Hi,


    Please use below code:


  • no it is related

    i know what am wrinting

    i have set (ieBrowser.Visible = false)

    and i have try do many request (many links)

    and get results

    i close the microsoft office

    then it will show as i tell in the preview post

    you can try it yourself

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!