Solved

web scrape -- find a link inside a div

Posted on 2014-10-19
1
126 Views
Last Modified: 2014-10-19
I start with this: Set objCollection = ieDocOverstock.getElementsByTagName("div")
Then loop through the objCollection looking for those with the classname "ordercontianer"
That is working OK.
Inside the div is a number of hyperlinks (<a>).
The following line gives me a permissions error
                Set Links = objCollection.getElementsByTagName("a")
0
Comment
Question by:rrhandle8
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40390934
How are you looping?
Lets say for example

While i < objCollection.Length
    // if element has class then we do
    Set Links = objCollection(i).getElementsByTagName("a") 

Open in new window

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question