# Erebus IRC bot - Author: Conny Sjoblom
-# Spotify URL Checker
+# Twitch URL Checker
# This file is released into the public domain; see http://unlicense.org/
# module info
import re
import urllib2
import json
-from BeautifulSoup import BeautifulSoup
checkfor = "twitch"
hostmask_regex = re.compile('^(.*)!(.*)@(.*)$')
# Erebus IRC bot - Author: Conny Sjoblom
-# Spotify URL Checker
+# Youtube URL Checker
# This file is released into the public domain; see http://unlicense.org/
# module info
html_parser = HTMLParser.HTMLParser()
respdata = urllib2.urlopen(url).read()
soup = BeautifulSoup(respdata)
- try:
- bot.msg(line.split()[2], BeautifulSoup(soup.title.string, convertEntities=BeautifulSoup.HTML_ENTITIES))
- except:
- pass
+ bot.msg(line.split()[2], BeautifulSoup(soup.title.string, convertEntities=BeautifulSoup.HTML_ENTITIES))