Solved

web scrape -- find a link inside a div

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now