<commit_before>require 'redditkit'

client = RedditKit::Client.new 'ravensbot', 'baltimore'
puts client.signed_in?





title = "title"
output = "text"

client.submit(title, "ravensbot", options={"text" => output})
<commit_msg>video works<commit_after>require 'redditkit'
require 'rss'
require 'date'
require 'net/http'
client = RedditKit::Client.new 'ravensbot', 'baltimore'

videoFeedUrl = "http://www.baltimoreravens.com/cda-web/rss-module.htm?tagName=Videos"
newsFeedUrl = "http://www.baltimoreravens.com/cda-web/rss-module.htm?tagName=News"
photosFeedUrl = "http://www.baltimoreravens.com/cda-web/feeds/photo"

time = Date.today


videoRss = RSS::Parser.parse(videoFeedUrl, false)
videoRss.items.each do |item|
  if item.pubDate.to_date > time-2
    begin
      videoPageUrl = /<li class="download-audio "><a href="(.+)">/.match(Net::HTTP.get(URI(item.link)))[1]
      videoUrl = "#{/(.+)32k.mp3/.match(videoPageUrl)[1]}5000k.mp4"
      puts "#{item.pubDate} - #{item.title}"
      puts videoUrl
    rescue
    end
  end
end

title = "BaltimoreRavens.com Content from #{time.strftime("%Y-%m-%d")}"
output = "text"
#puts "#{title}\n#{output}"
#client.submit(title, "ravensbot", options={"text" => output})

{'fraction_non_alphanumeric': 0.1834710743801653, 'fraction_numerical': 0.00909090909090909, 'mean_word_length': 4.878640776699029, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '597398', 'n_tokens_mistral': 473, 'n_tokens_neox': 456, 'n_words': 76}