B4A Library Library YouTube Grabber

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.

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

Attachments

  • YoutubeGrabber-Library.zip
    4.3 KB · Views: 390
  • YoutubeGrabber-B4A-Example.zip
    384.7 KB · Views: 468
  • YoutubeGrabber-Class.zip
    1.2 KB · Views: 376

MarcoRome

Expert
Licensed User
Longtime User
Can it download Youtube video as MP3 format?

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.
 
Top