song/commands/MusicWebsiteParser/MrJattParser.py
def missing_schema(self,html,song_name):
		'''
		It will print the list of songs that can be downloaded
		'''
		#html=self.get_html_response(url)
		soup=BeautifulSoup(html)
		name=' '.join(song_name)
		print '%s not found'%name
		print "But you can download any of the following songs :"
		a_list=soup.findAll('a','touch')
		for x in xrange(len(a_list)-1):
			r=a_list[x]
			p=str(r)
			q=re.sub(r'<a.*/>|<span.*">|</span>|</a>|<a.*html">|<font.*">|</font>','',p)
			print q
def missing_schema(self,html,song_name):
		'''
		It will print the list of songs that can be downloaded
		'''
		#html=self.get_html_response(url)
		soup=BeautifulSoup(html)
		name=' '.join(song_name)
		print '%s not found'%name
		print "But you can download any of the following songs :"
		a_list=soup.findAll('a','touch')
		for x in xrange(len(a_list)-1):
			r=a_list[x]
			p=str(r)
			q=re.sub(r'<a.*/>|<span.*">|</span>|</a>|<a.*html">|<font.*">|</font>','',p)
			print q
def missing_schema ( self , html , song_name ) : #html=self.get_html_response(url) soup = BeautifulSoup ( html ) name = ' ' . join ( song_name ) print '%s not found' % name print "But you can download any of the following songs :" a_list = soup . findAll ( 'a' , 'touch' ) for x in xrange ( len ( a_list ) - 1 ) : r = a_list [ x ] p = str ( r ) q = re . sub ( r'<a.*/>|<span.*">|</span>|</a>|<a.*html">|<font.*">|</font>' , '' , p ) print q
It will print the list of songs that can be downloaded
It will print the list of songs that can be downloaded