Jump to content
UBot Underground

Get Original Image Link From Google Images Search


Recommended Posts

hi,

need to get direct links to images found via google search images

 

for example:

navigate("https://www.google.com/search?q=mining+workers%7Cpeople+hard+hat+high+visibility&biw=1920&bih=955&source=lnms&tbm=isch&sa=X&ei=DtgXVeLqG4WrU-2vgaAL&ved=0CAYQ_AUoAQ","Wait")
add list to list(%link,$scrape attribute(<tagname="img">,"src"),"Delete","Global")
 

when move mouse on images i see that images description contain links to original websites but if i look at html code of the page i dont see anything to scrape

 

*NOTE: I need to get original image link

first 3 ex:

Link to post
Share on other sites

Try this pal :)

navigate("https://www.google.com/search?q=mining+workers%7Cpeople+hard+hat+high+visibility&biw=1920&bih=955&source=lnms&tbm=isch&sa=X&ei=DtgXVeLqG4WrU-2vgaAL&ved=0CAYQ_AUoAQ","Wait")
add list to list(%link,$find regular expression($scrape attribute(<data-ved=w"*">,"innerhtml"),"(?<=imgurl\\=).+?(?=\\&)"),"Delete","Global")

  • Like 1
Link to post
Share on other sites

This will also work.
 

navigate("https://www.google.com/search?q=mining+workers%7Cpeople+hard+hat+high+visibility&biw=1920&bih=955&source=lnms&tbm=isch&sa=X&ei=DtgXVeLqG4WrU-2vgaAL&ved=0CAYQ_AUoAQ","Wait")
add list to list(%link,$find regular expression($scrape attribute(<class="rg_di rg_el">,"innerhtml"),"(?<=imgurl\\=).+?(?=\\&)"),"Delete","Global")

  • Like 1
Link to post
Share on other sites

 

This will also work.

 

navigate("https://www.google.com/search?q=mining+workers%7Cpeople+hard+hat+high+visibility&biw=1920&bih=955&source=lnms&tbm=isch&sa=X&ei=DtgXVeLqG4WrU-2vgaAL&ved=0CAYQ_AUoAQ","Wait")
add list to list(%link,$find regular expression($scrape attribute(<class="rg_di rg_el">,"innerhtml"),"(?<=imgurl\\=).+?(?=\\&)"),"Delete","Global")

thanks a lot,you really help me

i am a new user of ubot studio so its great that there are people like you to help me out

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...