Solved

web scrape -- find a link inside a div

Posted on 2014-10-19
1
112 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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…

763 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

10 Experts available now in Live!

Get 1:1 Help Now