Hallo!
Ich würde gerne ein Programm erstellen in VB.net.
Anforderungen:
Beispielvideo:
Seitenquelltext:
Aus dem Quelltext:
Name des Videos
Beschreibung
Keywords/Tags
Leider haben nicht alle 3 das gleiche Format, also wie beim Titel zum Beispiel: <meta property="og:title"="">
Ich weiß daher leider nicht wie ich das ganze realisieren soll. Bin für jede Hilfe dankbar.
EDIT: Benutze jetzt die Youtube Data Api. Bekomme als Rückgabewert eine JSON Datei.
So sieht das ganze aus:
}
Wie lese ich das ganze aus dieser Datei aus?
Ich würde gerne ein Programm erstellen in VB.net.
Anforderungen:
- ein Youtube-Link soll in eine Textbox (txtLink) eingefügt werden
- durch einen Button (btnSubmit) soll folgendes ausgeführt werden:
- in Textbox 2 (txtTitle) soll der Name des Videos stehen
- in Textbox 3 (txtDescr) soll die Beschreibung des Videos stehe
- in Textbox 4 (txtTags) sollen die Tags/Keywords des Videos stehen
Beispielvideo:
Seitenquelltext:
Aus dem Quelltext:
Name des Videos
Beschreibung
HTML-Quellcode
- <p id="eow-description" class="" >Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.<br /><br />Licensed under the Creative Commons Attribution license<br /><br /><a href="http://www.bigbuckbunny.org/" class=" yt-uix-servicelink " data-url="http://www.bigbuckbunny.org/" data-servicelink="CDEQ6TgiEwjTkruaga7PAhUJxBYKHTggDmIo-B0" target="_blank" rel="nofollow">http://www.bigbuckbunny.org/</a>
Keywords/Tags
Leider haben nicht alle 3 das gleiche Format, also wie beim Titel zum Beispiel: <meta property="og:title"="">
Ich weiß daher leider nicht wie ich das ganze realisieren soll. Bin für jede Hilfe dankbar.
EDIT: Benutze jetzt die Youtube Data Api. Bekomme als Rückgabewert eine JSON Datei.
So sieht das ganze aus:
XML-Quellcode
- {
- "items": [
- {
- "id": "YE7VzlLtp-4",
- "snippet": {
- "channelId": "UCSMOQeBJ2RAnuFungnQOxLg",
- "title": "Big Buck Bunny",
- "description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\r\n\r\nLicensed under the Creative Commons Attribution license\r\n\r\nhttp://www.bigbuckbunny.org/",
- "tags": [
- "Animation",
- "CGI",
- "Big",
- "Buck",
- "Bunny",
- "Blender",
- "3D",
- "Creative",
- "Commons",
- "blender",
- "open",
- "movie",
- "content",
- "cartoon",
- "animated",
- "animation art"
- ]
- }
- }
- ]
Wie lese ich das ganze aus dieser Datei aus?
Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von „nikexo“ ()