<commit_before>package main

import (
	"fmt"
)

// TODO: Check if valid Youtube url. If not (minified urls), try following them

/**
video <- goutube.Youtube(link)
args := video.args
downloadLink := video.
*/
func main() {
 	args, err := GetYoutubeConfigArgs("https://www.youtube.com/watch?v=iZq3i94mSsQ")
	if err != nil {
		return
	}
	results, _ := GetResults(args)

	for _, result := range results {
		fmt.Println(result.Format.Type)
	}
}
<commit_msg>Finalized the API and made goutube into a package<commit_after>package goutube

// TODO: Check if valid Youtube url. If not (minified urls), try following them

func Youtube(link string, errorChan chan error) <-chan []Link {
	resultChan := make(chan []Link)
	go func() {
		args, err := GetYoutubeConfigArgs(link)
		if err != nil {
			errorChan <- err
			return
		}

		links, err := GetLinks(args)
		if err != nil {
			errorChan <- err
			return
		}
		resultChan <- links
	}()
	return resultChan
}

{'fraction_non_alphanumeric': 0.12947368421052632, 'fraction_numerical': 0.003157894736842105, 'mean_word_length': 3.5721153846153846, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4383291', 'n_tokens_mistral': 368, 'n_tokens_neox': 322, 'n_words': 97}