Jump to content

Capture video links from a Youtube Search


Recommended Posts

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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

Link to comment
Share on other sites

#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

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...