B4A Library Library YouTube Grabber

Discussion in 'Additional libraries, classes and official updates' started by MarcoRome, Jul 15, 2015.

  1. MarcoRome

    MarcoRome Expert Licensed User

    Hi all.

    This is simple library to grab in another format / quality youtube
    I used this free service: YTGrabber
    Is very simple:

    YoutubeGrabber
    Author:
    Devil-App
    Version: 1

    • YoutubeGrabber
      Methods:
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • _initialize (idyoutube As String, Format As String, Quality As String, Module As Object, EventName As String) As String
    • typeLevel
      Fields:
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • error As String
      • thumbnailUrl As String
      • title As String
      • url As String
      Methods:
      • Initialize
        Initializes the fields to their default value.

    Code:
    Sub Activity_Create(FirstTime As Boolean)
        
    'Do not forget to load the layout file created with the visual designer. For example:
        'Activity.LoadLayout("Layout1")
        youtgrab.Initialize("YfcYPyxXVCo""mp4","360p", Me, "url")
       
    End Sub

    Sub url(valore As typeLevel)
    Log("Title: " & valore.title)
    Log("Url: " & valore.url)
    Log("ThumbnailUrl: " & valore.thumbnailUrl)
    Log("Error: " & valore.error )
    End Sub
    Is important that you have this library:
    httputils2
    json
    okhttp
    javaobject
    stringutils

    Installation instructions:
    You have 2 way:

    1 LIBRARY
    - Unzip the attached file ( YoutubeGrabber-Library.zip) and copy YoutubeGrabber.jar and YoutubeGrabber.xml to the libraries folder
    - YoutubeGrabber-B4A-Example.zip is simple B4A

    2 CLASS
    - Available also Class. Unzip the attachment YoutubeGrabber-Class.zip

    Screenshot 2015-07-15 22.01.31.png
     

    Attached Files:

  2. cambopad

    cambopad Active Member Licensed User

    Can it download Youtube video as MP3 format?
     
  3. walterf25

    walterf25 Well-Known Member Licensed User

    +1
     
  4. MarcoRome

    MarcoRome Expert Licensed User

    Exist another service for this ( LOOK THIS )
    "...Search videos, channels, playlists, download videos and convert to mp3 files. Work with all videos...."
    Already ask for documentation for this... i wait response.
    anyway if you found another service similar ...send me.
     
  5. Leni Berry

    Leni Berry Active Member Licensed User

    this library still working?
     
Loading...