<commit_before># libvideo

![icon](icons/icon_200.png)

[![Join the chat at https://gitter.im/James-Ko/libvideo](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/James-Ko/libvideo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

libvideo is a .NET library that lets you download YouTube videos in a fast, clean way.

## How do I get started?

See our [docs](docs/README.md) for instructions.

## Do you have a NuGet package?

[Yes, we do.](https://www.nuget.org/packages/VideoLibrary) You can install it with this command:

    Install-Package VideoLibrary

## What platforms do you support?

libvideo supports the following platforms:

- .NET Framework 4.5+
- Windows 10 Universal apps
- Portable Class Libraries
- Windows 8.1 and 8.0
- Windows Phone 8.1 (WinRT)

## What's the difference between libvideo and YoutubeExtractor?

A lot. libvideo:
<commit_msg>Revisions to Getting Started<commit_after># libvideo

![icon](icons/icon_200.png)

[![Join the chat at https://gitter.im/James-Ko/libvideo](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/James-Ko/libvideo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

libvideo is a .NET library that lets you download YouTube videos in a fast, clean way.

## Where can I install libvideo?

You can grab a copy of the library [on NuGet](https://www.nuget.org/packages/VideoLibrary) by running:

    Install-Package VideoLibrary

Alternatively, you can try building the repo if you like your assemblies extra-fresh.

## How do I get started?

Here's a small sample to help you get familiar with libvideo:

```csharp
using VideoLibrary;

var service = new YouTubeService(); // this is the starting point for all of our download actions

Video video = service.GetVideo("https://www.youtube.com/watch?v=vPto6XpRq-U"); // gets a Video object containing information about the video
string fileName = video.Title + video.Extension;
File.WriteAllBytes(fileName, video.GetBytes()); // saves it to disk
```

If you'd like to check out some more of our features, take a look at our [docs](docs/README.md). You can also refer to our [example application](samples/Valks/Valks/Program.cs) (named Valks, yes, I know, it's a sily name) if you're looking for a more comprehensive sample.

## What platforms do you support?

libvideo supports the following platforms:

- .NET Framework 4.5+
- Windows 10 Universal apps
- Portable Class Libraries
- Windows 8.1 and 8.0
- Windows Phone 8.1 (WinRT)

## What's the difference between libvideo and YoutubeExtractor?

A lot. libvideo:

{'fraction_non_alphanumeric': 0.10715667311411992, 'fraction_numerical': 0.011992263056092843, 'mean_word_length': 4.573275862068965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4896591', 'n_tokens_mistral': 853, 'n_tokens_neox': 798, 'n_words': 285}