Jump to content

Recommended Posts

Posted (edited)

Hey all,

Has anyone created any queries for youtube? I was thinking it might be something like this but can't quite figure it out:

$oIE = _IECreateEmbedded()
      _IENavigate($oIE,"https://www.youtube.com")
      Local $oForms = _IETagNameGetCollection($oIE, "form")
      Local $sTxt = ""
      For $oForm In $oForms
          If $oForm.id = "masthead-search" Then
             $oInputs = _IETagNameGetCollection($oIE, "input")
             For $oInput In $oInputs
                If $oInput.id = "masthead-search-term" Then
                   _IEFormElementSetValue($oInput, "cards")
                   _IEFormSubmit($oForm)
                EndIf
             Next
          EndIf
       Next

 

Edited by nassausky
Typo
  • Moderators
Posted

@nassausky please pay attention to where you post in the future. The Examples forum very clearly states:

  Quote

Do not post general support questions here, instead use the AutoIt Help and Support forums.

Expand  

 

"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!

Posted (edited)

How can their server be smart enough to give this response:

We're sorry...

... but your computer or network may be sending automated queries.

 

So my guess is I'm doing it correctly unless there is some other way around it. 

Edited by nassausky
  • Moderators
Posted

nassausky,

Getting that as a reply means that you obviously fall foul of the Forum rules  which forbid the discussion of "Automation of software/sites contrary to their EULA" - so the thread is locked.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...