old_contents: import urllib.request
  from bs4 import BeautifulSoup
  import re
  import syscmd
  
  ## Gets title for the urls
  def title ( self, url ):
  	
  	## Banned extensions in the urls
  	valid = re.search( ".*\.(jpg$|jpeg$|png$|gif$|pdf$|exe$|zip$)", url )
  	
  	if valid == None:
  		url = url.strip().rstrip(".")
  		req = urllib.request.Request(url, None)
  		## Until I figure out something better...
  		if "t.co" in url.strip():
  			html = syscmd.getHtml( self, url, False )
  		else:
  			html = syscmd.getHtml( self, url, True )
  		try:
  			try:
  				soup = BeautifulSoup(html, "lxml")
  			except:
  				soup = BeautifulSoup(html, "html5lib")
  			#else:
  			#	soup = BeautifulSoup(html, "html.parser")
  			title = soup.title.string
  			title = re.sub("\n", "", title)
  			self.send_chan( "~ " + ' '.join(title.split()) ) ##Split words and join them with space
  		except Exception as e:
  			if self.config["debug"] == "true":
  				print(e)
new_contents: import urllib.request
  from bs4 import BeautifulSoup
  import re
  import syscmd
  
  ## Gets title for the urls
  def title ( self, url ):
  	
  	## Banned extensions in the urls
  	valid = re.search( ".*\.(jpg$|jpeg$|png$|gif$|pdf$|exe$|zip|txt$)", url )
  	
  	if valid == None:
  		url = url.strip().rstrip(".")
  		req = urllib.request.Request(url, None)
  		## Until I figure out something better...
  		if "t.co" in url.strip():
  			html = syscmd.getHtml( self, url, False )
  		else:
  			html = syscmd.getHtml( self, url, True )
  		try:
  			try:
  				soup = BeautifulSoup(html, "lxml")
  			except:
  				soup = BeautifulSoup(html, "html5lib")
  			#else:
  			#	soup = BeautifulSoup(html, "html.parser")
  			title = soup.title.string
  			title = re.sub("\n", "", title)
  			self.send_chan( "~ " + ' '.join(title.split()) ) ##Split words and join them with space
  		except Exception as e:
  			if self.config["debug"] == "true":
  				print(e)
subject: add .txt to banned list