rolf5th 0 Posted March 10, 2015 Report Share Posted March 10, 2015 I want to scrape the url of this one http://postimg.org/image/nwcny1aqf/ basically when you go search images in google and select one of the result, you will get to this page and I want to scrape the url of the "visit page" the url looks something like this: http://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0CAMQjxw&url=http%3A%2F%2Fimages.visitcanberra.com.au%2F&ei=8qn-VKfOKs2D8gWm4IG4Ag&bvm=bv.87611401,d.dGc&psig=AFQjCNGGe6SqJUaOmYecpw9fvO8Du5HwSg&ust=1426062191485309 I want to scrape the whole url. Thanks for the help! Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted March 10, 2015 Report Share Posted March 10, 2015 This seams to work on multiple pages navigate("https://www.google.com/search?q=toys&source=lnms&tbm=isch&sa=X&ei=WNv-VJiDDYb7oQSx-YG4DQ&ved=0CAgQ_AUoAg&biw=960&bih=460#imgrc=FjOlhy9ymUgEjM%253A%3Bt-Hfu4Vrp_JLwM%3Bhttp%253A%252F%252Fbenchmark.us%252Fwp-content%252Fuploads%252F2013%252F12%252Fbest-selling-toys-on-amazon.com-for-christmas-2013.jpg%3Bhttp%253A%252F%252Fbenchmark.us%252Ftop-10-best-selling-toys-on-amazon-com-for-christmas-2013%252F%3B1735%3B1153","Wait") wait for element($element offset(<class="irc_but_t">,9),15,"Appear") alert($scrape attribute(<data-ved="0CAMQjxw">,"fullhref")) CD 2 Quote Link to post Share on other sites
rolf5th 0 Posted March 12, 2015 Author Report Share Posted March 12, 2015 Hi thanks for your reply. Your code scrape the actual url of the landing page. http://benchmark.us/top-10-best-selling-toys-on-amazon-com-for-christmas-2013/ What I want to scrape is the url when you right click the "visit page" This one: https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0CAMQjxw&url=http%3A%2F%2Fbenchmark.us%2Ftop-10-best-selling-toys-on-amazon-com-for-christmas-2013%2F&ei=MagBVc7xLuPSmAX1vYGwCg&bvm=bv.87920726,d.dGY&psig=AFQjCNE4Y8iV6o6q85XL30bRfhtTdOd-9w&ust=1426258350731611 Thanks again for anyone the can help! Quote Link to post Share on other sites
deliter 203 Posted March 12, 2015 Report Share Posted March 12, 2015 took a go of it,very difficult,PM me please if someone posts a solution,seems the page makes javascript on the go and generates a link 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.