Coder Social home page Coder Social logo

youtubefeedreader's Introduction

YouTube Feed Reader

YouTube Feed Reader is a library for reading YouTube channel feeds in .NET.

Example

The usage is very straightforward.

  1. Install the library from NuGet or similar sources, and declare the namespace.
using YouTubeFeedReader;
  1. Retrieves feed information for any channel.
using (var ytService = new YouTubeFeedService())
{
    // 2 - 1. Fetches the feed for the specified channel from youtube.com
    var result = await ytService.LoadDocumentWithChannelIdAsync("UCw4J-5X7x1xUdbIcQkZ4VYA");

    // 2 - 2. Displays the channel's title
    Console.WriteLine(result.Title);
    Console.WriteLine();

    // 2 - 3. Displays information about recent streaming videos
    foreach (var entry in result.Entries)
    {
        Console.WriteLine("*** Id: {0} ***", entry.YouTubeVideoId);
        Console.WriteLine("  Title    : {0}", entry.Title);
        Console.WriteLine("  Views    : {0} views", entry.MediaGroup.Community.Statistics.Views);
        Console.WriteLine();
    }

    Console.ReadLine();
}

Install

Now available on NuGet

NuGet\Install-Package YouTubeFeedReader

Platform

YouTube Feed Reader is designed for .NET Standard 2.0, making it available for a wide range of .NET applications.

Please refer to Microsoft's documentation for information on the targets that can apply .NET Standard 2.0 libraries:
https://learn.microsoft.com/ja-jp/dotnet/standard/net-standard?tabs=net-standard-2-0#select-net-standard-version

youtubefeedreader's People

Contributors

a32kita avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.