<commit_before><commit_msg>yt-title<commit_after>import urllib.request
from bs4 import BeautifulSoup
from hooks import hook
from more import Response

nemubotversion = 3.4

def help_tiny():
  return "CVE description"

def help_full():
  return "No help "

@hook("cmd_hook", "yt")
def get_info_yt(msg):
  req = urllib.request.Request('https://www.youtube.com/watch?v=e0MCuuePNQg',
                               data=None,
                               headers={
      'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'
      })

  url = urllib.request.urlopen(req)
  soup = BeautifulSoup(url)
  desc = soup.body.find(id='eow-title')
  res = Response(channel=msg.channel, nomore="No more description")
  res.append_message(desc.text)
  return res

{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.03485576923076923, 'mean_word_length': 3.228426395939086, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4299118', 'n_tokens_mistral': 307, 'n_tokens_neox': 289, 'n_words': 62}