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.

 

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

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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