allcapone1912 7 Posted March 29, 2015 Report Share Posted March 29, 2015 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 linkfirst 3 ex:http://www.abc.net.au/news/image/4243128-3x2-940x627.jpghttps://talesfromthetandem.files.wordpress.com/2013/01/p1030805_2.jpghttps://parituhunews.files.wordpress.com/2013/08/img_1275.jpg Quote Link to post Share on other sites
sunny9495 42 Posted March 29, 2015 Report Share Posted March 29, 2015 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") 1 Quote Link to post Share on other sites
sunny9495 42 Posted March 29, 2015 Report Share Posted March 29, 2015 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") 1 Quote Link to post Share on other sites
allcapone1912 7 Posted March 29, 2015 Author Report Share Posted March 29, 2015 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 mei am a new user of ubot studio so its great that there are people like you to help me out 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.