Jump to content
UBot Underground

trying to grab youtube id new to ubot 4 !!!


Recommended Posts

 new to ubot 4 i m trying to scrape urls of video in youtube here are the steps : the links with watch v = .......

 

go to youtube 

 

put the search query 

 

and in brings up list off the result 

 

here where i struggle to find what i want !!

 

i tryed with the thumb href  // not working 

i tryed with the title   href // not working 

 

i used add list to list then tryed to scrape by attribute 

 

 

i would like to grab the urls  of my results 

 

any help about this would be greatly appreciated 

 

tnx in advance guys 

Link to post
Share on other sites

It can be done with something like this.

navigate("http://www.youtube.com/results?search_query=gta+5+online&oq=gta+5+online&gs_l=youtube.3..0i3l3j0l7.2760.4195.0.4343.9.6.0.3.3.0.74.353.6.6.0...0.0...1ac.1.11.youtube.6BBFtfnsxmM", "Wait")
wait for element(<class=w"yt-uix-sessionlink yt-uix-tile-link yt-uix-contextlink*">, "", "Appear")
change attribute(<href=w"*googleads.g.doubleclick.net*">, "href", $nothing)
clear list(%data)
add list to list(%data, $scrape attribute(<href=w"/watch?v=*">, "fullhref"), "Delete", "Global")

  • Like 1
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...