Jump to content
UBot Underground

How Can I Scrape This One In Google Image?


Recommended Posts

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!

Link to post
Share on other sites

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

  • Like 2
Link to post
Share on other sites

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!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...