song/commands/MusicWebsiteParser/MrJattParser.py
def Parse(self,url,song_name,flag):
		'''
		It will the resource URL if song is found,
		Otherwise it will return the list of songs that can be downloaded
		'''
		file_download=FileDownload()
		html=file_download.get_html_response(url)
		if flag == False:
			soup=BeautifulSoup(html)
			a_list=soup.findAll('a','touch')
			#print a_list
			text=[str(x) for x in a_list]
			text=''.join(text)
			text=text.lower()
			string1='download in 48 kbps'
			string2='download in 128 kbps'
			string3='download in 320 kbps'

			href=''
			if string3 in text:
				print 'Downloading in 320 kbps'
				href=a_list[2].get('href')
				
			elif string2 in text:
				print 'Downloading in 128 kbps'
				href=a_list[1].get('href')
				
			elif string1 in text:
				print 'Downloading in 48 kbps'	
				href=a_list[0].get('href')
			else:
				self.missing_schema(html,song_name)
				quit()		

			return href 
		else:
			x,href=self.check_if_song_name(html)
			links = []
			if x==True:
				links=self.list_of_all_href(html)
			else:
				file_download=FileDownload()
				file_download.file_download_cross_platform(href)
				quit()	
			

			return links
def Parse(self,url,song_name,flag):
		'''
		It will the resource URL if song is found,
		Otherwise it will return the list of songs that can be downloaded
		'''
		file_download=FileDownload()
		html=file_download.get_html_response(url)
		if flag == False:
			soup=BeautifulSoup(html)
			a_list=soup.findAll('a','touch')
			#print a_list
			text=[str(x) for x in a_list]
			text=''.join(text)
			text=text.lower()
			string1='download in 48 kbps'
			string2='download in 128 kbps'
			string3='download in 320 kbps'

			href=''
			if string3 in text:
				print 'Downloading in 320 kbps'
				href=a_list[2].get('href')
				
			elif string2 in text:
				print 'Downloading in 128 kbps'
				href=a_list[1].get('href')
				
			elif string1 in text:
				print 'Downloading in 48 kbps'	
				href=a_list[0].get('href')
			else:
				self.missing_schema(html,song_name)
				quit()		

			return href 
		else:
			x,href=self.check_if_song_name(html)
			links = []
			if x==True:
				links=self.list_of_all_href(html)
			else:
				file_download=FileDownload()
				file_download.file_download_cross_platform(href)
				quit()	
			

			return links
It will the resource URL if song is found,
		Otherwise it will return the list of songs that can be downloaded