?
Solved

web scrape -- find a link inside a div

Posted on 2014-10-19
1
Medium Priority
?
132 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 2000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
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.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

770 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