Sign in to follow this  
Followers 0
fkugd2003

Capture video links from a Youtube Search

6 posts in this topic

Hi Guys,

Is there any way to capture links from a youtube search , i mean "watch?v=" only

 

Share this post


Link to post
Share on other sites



I think this may fall under this announcement:

'?do=embed' frameborder='0' data-embedContent>>

The announcement mentions linking to code or software elsewhere, but I would think that would include an AutoIt script that could do the same thing. Unless I am reading it wrong.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

The problem is not with Breaking the google privacy policy, i'm am hoping to create a simple soft that helps me change in the descriptions or tags of my own channel

@john How i've used _HTML.au3 but it wasn't that helpful

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

#include <inet.au3>
#include <array.au3>
#include <string.au3>
$searchwords="AutoIt+au3"
$rc=_INetGetSource("https://www.youtube.com/results?search_query="&$searchwords)
$array=_StringBetween(_INetGetSource("https://www.youtube.com/results?search_query="&$searchwords),"<a href=""/watch?v=","""")
_ArrayDisplay($array,"Without Description")
$array=_StringBetween(_INetGetSource("https://www.youtube.com/results?search_query="&$searchwords),""" href=""/watch?v=","</a>")
_ArrayDisplay($array,"With Description")
Edit: Modified to also show descriptions

Edited by Exit

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

thanks for your help  :sorcerer:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0