Jump to content

Search the Community

Showing results for tags 'youtube'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 7 results

  1. So I was playing with INet and downloading files and made a simple video downloader, or it can even be used for any file really. Just follow the reference section in INet_Settings.ini , and then run the script. Main Script #include <INet.au3> #include <InetConstants.au3> #include <WinAPIFiles.au3> #include <Array.au3> #include <String.au3> OnAutoItExitRegister('INET_CLOSE') $GET_URL = _INetGetSource(IniRead(@ScriptDir & '\Inet_Settings.ini', 'Request', 'Url', Default)) $STRING_START = IniRead(@ScriptDir & '\Inet_Settings.ini', 'Data', 'Start', Default) $STRING_END = IniRead(@ScriptDir & '\Inet_Settings.ini', 'Data', 'End', Default) $GET_STRING = _StringBetween ($GET_URL, $STRING_START, $STRING_END) $VIDEO_URL = _ArrayToString($GET_STRING) $VIDEO = _URIDecode($VIDEO_URL) If StringLen($VIDEO) > 0 Then Local $VIDEO_DIR = (@ScriptDir & '\' & Random(1, 65535) & '.mp4') Local $DOWNLOAD_VIDEO = InetGet($VIDEO, $VIDEO_DIR, $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND) Do Sleep(IniRead(@ScriptDir & '\Inet_Settings.ini', 'Settings', 'Delay', Default)) Until InetGetInfo($DOWNLOAD_VIDEO, $INET_DOWNLOADCOMPLETE) InetClose($DOWNLOAD_VIDEO) Else MsgBox(0, 'DEBUG', "Video doesn't exist") EndIf Func INET_CLOSE() InetClose($DOWNLOAD_VIDEO) EndFunc Func _URIEncode($sData) ; Prog@ndy Local $aData = StringSplit(BinaryToString(StringToBinary($sData,4),1),"") Local $nChar $sData="" For $i = 1 To $aData[0] ; ConsoleWrite($aData[$i] & @CRLF) $nChar = Asc($aData[$i]) Switch $nChar Case 45, 46, 48 To 57, 65 To 90, 95, 97 To 122, 126 $sData &= $aData[$i] Case 32 $sData &= "+" Case Else $sData &= "%" & Hex($nChar,2) EndSwitch Next Return $sData EndFunc Func _URIDecode($sData) ; Prog@ndy Local $aData = StringSplit(StringReplace($sData,"+"," ",0,1),"%") $sData = "" For $i = 2 To $aData[0] $aData[1] &= Chr(Dec(StringLeft($aData[$i],2))) & StringTrimLeft($aData[$i],2) Next Return BinaryToString(StringToBinary($aData[1],1),4) EndFunc INet_Settings.ini URL - The target URL of the video you're trying to grab Data - This is the starting string, and ending string reference to look for the download URL itself. Settings - Only setting here currently, is the delay in which to wait for the file to download ### Reference for Start and End points for various websites [Request] Url = https://www.facebook.com/lindseystirlingmusic/videos/1527732263925622/ [Data] Start = hd_src_no_ratelimit:" End = " [Settings] Delay = 250 ################################################################################################### Instagram : https://www.instagram.com/p/Video ID Or : https://www.instagram.com/p/Video ID/?taken-by=User ID Start = video:secure_url" content=" End = " Facebook : https://www.facebook.com/User ID/videos/Video ID/ Or : Right click on the video and copy URL Start = hd_src_no_ratelimit:" End = " Start = sd_src_no_ratelimit:" End = " ################################################################################################### Credits to : https://www.autoitscript.com/forum/profile/31965-progandy/ for the URL Encode and Decode.
  2. Hello, I am looking for a way to essentially fullscreen a YouTube video in Chrome to the size of the window. Eliminating all chrome features, scroll bars, bookmarks, and YouTube headers, etc... To explain why, I wrote a simple script that forces a window to be on top, so when I am working I can have a small sized YouTube window opened playing a video. Being picky, the features of Chrome+YouTube are annoying to see. I would like the video to fulfill the window when toggling it on top and off. Any way to achieve this through the chrome window or will I need to create my own GUI and embed the video? Maybe allowing just the main features such as exit and minimize to exist? While preserving full video functionality of pause and resume. FROM THIS TO THIS Thanks,
  3. 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
  4. Here is another UDF! With YTAPI you can easily use the YouTube api to get all the info that you need for a specific YouTube video. This UDF will not retrive to you the video download link!, Remember that download video from YouTube is illegal If you will find any bug, have suggestion or you want other function please just let me know! All supported function: ;_YTApi_GetVideoID ;_YTApi_GetThumbnail ;_YTApi_GetTitle ;_YTApi_GetDescription ;_YTApi_GetAuthor ;_YTApi_GetDuration ;_YTApi_GetCategory ;_YTApi_GetStats ;_YTApi_GetRating ;_YTApi_GetRatingAverange ;_YTApi_GetUploadedDate ;_YTApi_GetUpdatedDate ;_YTApi_GetAllowedCountry ;_YTApi_IsCountryAllowed Here is a simple Example of usage: #include "YTAPI.au3" $Video_ID = "dSLOR2cRouU" $Video_Thumbnail = _YTApi_GetThumbnail($Video_ID) If Not @error Then MsgBox(0, "Thumbnail", "You can see the video thumbnail at this address:" & @CRLF & $Video_Thumbnail) EndIf $Video_Author = _YTApi_GetAuthor($Video_ID) If @error Then MsgBox(0, "Author", "The video author is: " & $Video_Author) EndIf $Video_Duration = _YTApi_GetDuration($Video_ID) If Not @error Then MsgBox(0, "Duration", "The video duration is: " & $Video_Duration & " seconds.") EndIf $Video_Title = _YTApi_GetTitle($Video_ID) If Not @error Then MsgBox(0, "Title", "The video title is: " & $Video_Title) EndIf $Video_Description = _YTApi_GetDescription($Video_ID) If Not @error Then MsgBox(0, "Description", "The video is: " & $Video_Description) EndIf $Video_Category = _YTApi_GetCategory($Video_ID) If Not @error Then MsgBox(0, "Category", "The video category is: " & $Video_Category) EndIf $Video_Stats = _YTApi_GetStats($Video_ID) If Not @error Then MsgBox(0, "Video Stats", "Favorite Video Count: " & $Video_Stats[0] & @CRLF & "View Count: " & $Video_Stats[1]) EndIf $Video_Rating = _YTApi_GetRating($Video_ID) If Not @error Then MsgBox(0, "Video Rating", "Dislikes: " & $Video_Rating[0] & @CRLF & "Likes: " & $Video_Rating[1]) EndIf $Video_Date = _YTApi_GetUploadedDate($Video_ID) ;Time is expressed in UTC (0)/GMT If Not @error Then MsgBox(0, "Video Upload Date", "This video was uploaded on: " & $Video_Date[0] & " at " & $Video_Date[1]) EndIf $Video_Update = _YTApi_GetUpdatedDate($Video_ID) ;Time exspressed in UTC (0)/GMT If Not @error Then MsgBox(0, "Video Update Date", "This video was updated on: " & $Video_Update[0] & " at " & $Video_Update[1]) EndIf $Video_Allowed_Country = _YTApi_GetAllowedCountry($Video_ID) If Not @error Then $allowed_txt = "" $counter = 0 For $i = 0 To UBound($Video_Allowed_Country) - 1 $allowed_txt &= $Video_Allowed_Country[$i] & " , " $counter += 1 If $counter = 10 Then $allowed_txt &= @CRLF $counter = 0 EndIf Next MsgBox(0, "Allowed Country Code", $allowed_txt) EndIf $Video_IsCountryAllowed = _YTApi_IsCountryAllowed($Video_ID, "US") If Not @error Then MsgBox(0, "Is this country code allowed?", "Country Code: 'US' is allowed!") EndIfHi! YTAPI v.1.0.0.rar
  5. I unable to post a video youtube on my site error telling me there is not another solution for the issue . here is the link: https://www.youtube.com/watch?v=V2mOo-Puslg-snip- give me good script I have to put on my site for his worksby Mary kelvin
  6. Would you Listen Last 100 Uk Top Charts singles like a JukeBox or Radio in random order and without advertising ? It's possible by getting charts List on charts website http://creativedisc.com/category/top-charts/uk-top-100-singles/ updated weekly and searching songs list on youtube. Changelog 1.0.6.1 Script completly rewrited. All externals fils are includes. New youtube search engine improved for listen the good song ! Blacklist Management improved. Video can be visible. Now flashplayer sound is muted while Ads. User clicks on flashplayer progress bar are now detected for the detection of the end of the song. New Buttons. Changelog 1.0.6.2 Adapted to new AutoIt Version and Youtube changes. Hope you like it ! Previous downloads : 500 source : TinyChartsJukebox v1.0.6.2.au3.html executable : TinyChartsJukebox.exe.html (Once the html file is downloaded, double click on it for start the download)
  7. I've been trying to make an extension for embedding plain text links on imageboards like 4chan. I've taken code from a more fully featured extension that has features that I really don't want because it's incompatible with the more popular extensions out there. I have it working as an extension in my browser, the edited full version of it, but when I pack it for installation and re-install it, it throws errors like "Uncaught TypeError: Cannot read property 'links1' of undefined". I don't know much about JS but I'm wondering why it's not throwing this error in the original version where it's edited but throws the error on the one installed from the packed crx file. var links = /((?:https?|ftp)://[^s'"'<>()]+|www.[^s'"'<>()]+|[-w.+]+@(?:[-w]+.)+[w]{2,6})/gi; function apply() { if (!window.location.href.match(/boards./)) return false; var a = document.getElementsByTagName("iframe"), b = document.getElementsByTagName("embed"); Activate(a,b); } function Activate(a, b) { a = a ? a + " " : ""; for (var d, c = xpath((a == "" ? "." : "id('" + a.substr(1, a.length - 2) + "')") + "//text()[ancestor::blockquote]"), e = 0; e < c.snapshotLength; e++) { d = c.snapshotItem(e); d != null && linkActivation(d); } } function linkActivation(a) { for (var b, d, c = a.textContent, e = null, g = 0, f = {}, youtube, vocaroo, soundcloud; (d = links.exec(c)) !== null;) if (!f[d[0]]) { f[d[0]] = true; null === e && (e = document.createElement("span")); b = d[0].replace(/.*$/, ""); e.appendChild(document.createTextNode(c.substring(g, d.index))); if (!b.match(/.4chan.org/i)) { b = (youtube = b.match(/youtube.com/watch?.*?v=([a-z0-9-_#!]+)/i)) && (settings.youtube1 != "off" && !inThread || settings.youtube2 != "off" && inThread) ? '<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/' + youtube[1] + '?wmode=opaque" frameborder="0"></iframe><br /><a href="' + b + '" target="_blank">' + b + "</a>" : (vocaroo = b.match(/vocaroo.com/(i/|?media=)([a-z0-9]+)/i)) && (settings.vocaroo1 != "off" && !inThread || settings.vocaroo2 != "off" && inThread) ? '<object type="application/x-shockwave-flash" style="width: 148px; height: 44px" data="http://vocaroo.com/player.swf?playMediaID=' + vocaroo[2] + '&server=m1.vocaroo.com&autoplay=0""><param name="movie" value="http://vocaroo.com/player.swf?playMediaID=' + vocaroo[2] + '&server=m1.vocaroo.com&autoplay=0"></object><br /><a href="' + b + '" target="_blank">' + b + "</a>" : (soundcloud = b.match(/((www.)?soundcloud.com/([a-z0-9-_]+/?)+)/i)) && (settings.soundcloud1 != "off" && !inThread || settings.soundcloud2 != "off" && inThread) ? '<object height="81" width="400"><param name="movie" value="http://player.soundcloud.com/player.swf?url=http://' + soundcloud[1] + '&amp;g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http://' + soundcloud[1] + '&amp;g=bb" type="application/x-shockwave-flash" width="400"></embed></object><br /><a href="http://' + soundcloud[1] + '" target="_blank">http://' + soundcloud[1] + "</a>" : b.indexOf("@") > -1 && (settings.email1 != "off" && !inThread || settings.email2 != "off" && inThread) ? "<a href='mailto:" + b + "'>" + b + "</a>" : settings.links1 != "off" && !inThread || settings.links2 != "off" && inThread && b.indexOf("@") < 0 ? "<a href='" + (b.match(/^http/i) ? b : "http://" + b) + "' target='_blank'>" + b + "</a>" : b; e.innerHTML = b; g = d.index + d[0].length; } } if (e) { e.appendChild(document.createTextNode(c.substring(g, c.length))); try { a.parentNode.replaceChild(e, a); } catch (h) { console.error(h); } } } function xpath(a) { return document.evaluate(a, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null) } apply();
×
×
  • Create New...