YouGrabber

Aus
Die druckbare Version wird nicht mehr unterstützt und kann Darstellungsfehler aufweisen. Bitte aktualisiere deine Browser-Lesezeichen und verwende stattdessen die Standard-Druckfunktion des Browsers.

Einleitung

YouGrabber ist ein kleines Programm, welches das Downloaden von Youtube Videos über die Kommandozeile(Shell/Konsole) ermöglicht.

Voraussetzungen

Installation

Die Installation von YouGrabber geschieht durch die folgende Konsoleneingabe:

ipkg install -A Yougrabber

Durch diese Eingabe, wird folgende Software Installiert:

  • YouGrabber
  • Ncurse
  • libcURL
  • GLib

Konfiguration

YouGrabber bietet folgende Konfigurationsmöglichkeiten:

  • Benutzen eines Proxyservers
  • Benutzen eines Youtube Accounts
  • Festlegen eines Download-Ordners

Gründe für die Konfiguration von YouGrabber:

  • Proxyserver => Anonymes downloaden der Videos
  • Youtube Account => Umgehen der Altersabfrage bzw Download von Videos mit Altersbeschränkung
  • Download-Ordner => Speichern der Videos in einem Ordner der eigenen Wahl.


Eine Beispiel Konfigurationsdatei, für YouGrabber ist unter "/opt/share/doc/yougrabber/yg.conf.example" zu finden.

Inhalt der "yg.conf.example"

# YouGrabber
#
# A lightweight, command line YouTube.com video downloader, made from scratch
# in ANSI C.
#
# Copyright (C) 2006-2008 Quetzy Garcia, <quetzyg@users.sourceforge.net>
# For news and updates, see <http://yougrabber.sourceforge.net/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
########################################
# Sample YouGrabber configuration file #
########################################
#
# Rename this file to '.yg.conf' (notice the leading dot),
# and copy it to your home directory.
#
# To understand configuration fallbacks, read the man page.
#
########################################
# Proxy settings (leave group uncommented)
[proxy]
#
# Proxy to use (host name or dotted IP address)
#host = http://proxy.example.com
#
# Proxy port to connect
#port = 8080
#
# Supported proxy types (HTTP, SOCKS4, SOCKS5)
#type = HTTP
#
# Proxy username
#username = login_name
#
# Proxy password
#password = secret_passphrase
#
########################################
# YouTube.com login settings (leave group uncommented)
[youtube]
#
# YouTube username
#username = login_name
#
# YouTube password
#password = secret_passphrase
#
########################################
# Download settings (leave group uncommented)
[download]
#
# Directory to store downloaded videos
#directory = /home/username/youtube_downloads/
#

Diese Datei kann mit dem folgenden Befehl editiert werden:

vi /opt/share/doc/yougrabber/yg.conf.example

Nach der Eingabe des Befehls, kann mit dem drücke der "i"-Taste der Editiermodus aktiviert werden.

Um die Veränderungen zu Speichern, wird mit pressen der "Esc"-Taste der Editiermodus verlassen.

Nachdem der Editiermodus verlassen wurde, kann das Dokument mit der Eingabe von ":wq" verlassen werden.

nachdem anpassen der Konfigurationsdatei wird diese mit dem nachfolgenden Befehl nach "/root/" kopiert:

cp /opt/share/doc/yougrabber/yg.conf.example /root/.yg.conf

Durch diesen Befehl, wird die Kopierte Datei in ".yg.conf" umbenannt.

Für die Kontrolle der Einstellungen, kann YouGrabber ohne gültige URL gestartet werden:

Beispiel:

yg -h

Nach dem Ausführen des Befehls, werden die Einstellungen Links oben in dem Konsolenfenster angezeigt.

Diese Einstellungen, werden immer angezeigt wenn YouGrabber aktiv ist.

YouGrabber benutzen

Nach der Installation kann YouGrabber über die folgende Konsoleneingabe aufgerufen werden:

Beispiel 1:

yg [URL des Youtube Videos]

Beispiel 2:

yg http://www.youtube.com/watch?v=wil5jZS8xXg

Wenn YouGrabber nicht konfiguriert wurde, werden Videos unter "/root/" gespeichert.

Tipp:

Wird ein Video nicht bzw. nur eine wenige KB große Datei heruntergeladen. Sollte der Download mit der von Youtube zur Verfügung gestellten URL versucht werden.

Beispiel einer Konfigurationsdatei

  • Die Konfigurationsdatei wurde getestet und funktioniert.
  • Das Passwort und der Benutzer wurden durch Schwarze Balken ersetzt.
#YouGrabber
#
# A lightweight, command line YouTube.com video downloader, made from scratch
# in ANSI C.
#
# Copyright (C) 2006-2008 Quetzy Garcia, <quetzyg@users.sourceforge.net>
# For news and updates, see <http://yougrabber.sourceforge.net/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
########################################
# Sample YouGrabber configuration file #
########################################
#
# Rename this file to '.yg.conf' (notice the leading dot),
# and copy it to your home directory.
#
# To understand configuration fallbacks, read the man page.
#
########################################
# Proxy settings (leave group uncommented)
[proxy]
#
# Proxy to use (host name or dotted IP address)
#host = http://proxy.example.com
#
# Proxy port to connect
#port = 8080
#
# Supported proxy types (HTTP, SOCKS4, SOCKS5)
#type = HTTP
#
# Proxy username
#username = login_name
#
# Proxy password
#password = secret_passphrase
#
########################################
# YouTube.com login settings (leave group uncommented)
[youtube]
#
# YouTube username
username = ████████
#
# YouTube password
password = ████████
#
########################################
# Download settings (leave group uncommented)
[download]
#
# Directory to store downloaded videos
directory = /volume1/vol1/tmp/
#


Quellen