Solved

web scrape -- find a link inside a div

Posted on 2014-10-19
1
121 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

777 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