Chris Ramsey 0 Posted April 8, 2011 Report Share Posted April 8, 2011 Hey all, I'm trying to scrape the featured listings from Yellow Pages, but I'm not exactly sure how to do it yet. Here's a sample page... http://www.yellowpages.com/st-louis/dentist?g=st+louis# You'll notice that the featured listings are inside a <div> with an ID of "sponsored-listings" However, if I select that, it'll scrape all the HTML inside it, which isn't what I want. I'd like to just scrape the URL that's inside the business name. Is there a way to do this? Thanks all! Quote Link to post Share on other sites
UBotBuddy 331 Posted April 8, 2011 Report Share Posted April 8, 2011 Hopefully someone in here will have an idea. I gave up on sites like this because as soon as I mastered one layout they changed it and my bot would break. Quote Link to post Share on other sites
Praney Behl 314 Posted April 8, 2011 Report Share Posted April 8, 2011 Hey all, I'm trying to scrape the featured listings from Yellow Pages, but I'm not exactly sure how to do it yet. Here's a sample page... http://www.yellowpages.com/st-louis/dentist?g=st+louis# You'll notice that the featured listings are inside a <div> with an ID of "sponsored-listings" However, if I select that, it'll scrape all the HTML inside it, which isn't what I want. I'd like to just scrape the URL that's inside the business name. Is there a way to do this? Thanks all! Chris What sort of License do you have? Quote Link to post Share on other sites
JohnB 255 Posted April 8, 2011 Report Share Posted April 8, 2011 Ok... Try it out and see if it works for you. John yp_featured.ubot Quote Link to post Share on other sites
UBotBuddy 331 Posted April 9, 2011 Report Share Posted April 9, 2011 I think he just wanted the link behind "Website" Quote Link to post Share on other sites
JohnB 255 Posted April 9, 2011 Report Share Posted April 9, 2011 Yeah, you're right. I missed that somehow... Ok, this is one step closer: yp_featured.ubot Quote Link to post Share on other sites
Praney Behl 314 Posted April 9, 2011 Report Share Posted April 9, 2011 I think he's trying to scrape the links of the featured listings. Quote Link to post Share on other sites
cntmedia 0 Posted April 10, 2011 Report Share Posted April 10, 2011 @Chris Ramsey Did you manage to solve your problem?? I did some sample bots on that page a few nights ago.Can you upload some screen shot show exactly what your trying to grab?thnkx Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.