How to use the jsbeautifier.unpackers.packer.unpack function in jsbeautifier

To help you get started, we’ve selected a few jsbeautifier examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kanishka-linux / AnimeWatch / AnimeWatch-PyQt4-Stable / Plugins / SubbedAnime.py View on Github external
else:
			found = ""
		return found
	elif "myvidstream" in i:
			packed = ''
			final = ""
			content = ccurl(i)
			soup = BeautifulSoup(content,'lxml')
			link = soup.findAll('script',{'type':'text/javascript'})
			for i in link:
				if 'myvidstream' in i.text:
					#print(i.text)
					packed = i.text
					break
			if packed:
				val = packer.unpack(packed)
				print(val)
				soup = BeautifulSoup(val,'lxml')
				m = (re.search('file[^)]*',val)).group()
				print(m)
				if m:
					n = re.search("http[^']*",m).group()
					if n:
						print(n)
						final = n
						final = re.sub(' |"','',final)
						final = re.sub("'",'',final)
						fi = final.split('\\')
						if fi:
							final = fi[0]
			"""
			link = re.findall('eval[(][^"]*.split',content)