Skip to content

Instantly share code, notes, and snippets.

this is a test gist for DL
@BrentPalmer
BrentPalmer / YouTube Data Checker.rb
Last active November 19, 2015 18:30
YouTube Data Checker - Parses through two CSV files and outputs the emails of discrepancies. *Note* I did not know if I was able to ask questions about the challenge? I noticed that prepended to some channel_ownership strings were "UC". I did not know if this was data entry error or not, so i processed as not BUT added the necessary code to take…
require 'csv'
class YouTubeDataParser
def initialize( args )
raise "Missing 'file1.csv'" if args[0].nil?
raise "Missing 'file2.csv'" if args[1].nil?
file1 = CSV.read(args[0], headers: true)